profiling

Profiling for wall-time on Linux

杀马特。学长 韩版系。学妹 提交于 2019-12-12 08:28:52
问题 I have an application that I want to profile wrt how much time is spent in various activities. Since this application is I/O intensive, I want to get a report that will summarize how much time is spent in every library/system call (wall time). I've tried oprofile, but it seems it gives time in terms of Unhalted CPU cycles (thats cputime, not real time) I've tried strace -T, which gives wall time, but the data generated is huge and getting the summary report is difficult (and awk/py scripts

Profiling .NET applications with Stopwatch

时光毁灭记忆、已成空白 提交于 2019-12-12 08:24:19
问题 It seems there are no free* .NET performance profilers that can profile on a line-by-line basis. Therefore, I am looking into using Stopwatch for profiling. *free as in freedom, i.e. license includes commercial applications. EDIT: In response to those who told me "buy a profiler", I would like to, but if I could spend that much money I would spend it on something else. I tried to convince my boss that a profiler is worth it, but haven't had much luck. This question is mostly based on

Haskell reinstall base with profiling enabled

谁说胖子不能爱 提交于 2019-12-12 08:23:26
问题 I am trying reinstall my Haskell libraries with profiling enabled by following the instructions listed here However, whenever cabal attempts to reinstall one of the libraries I get the following message: LibraryNameHere.hs:1:1: Could not find module `Prelude' Perhaps you haven't installed the profiling libraries for package `base'? Use -v to see a list of the files searched for. When I try to reinstall base with profiling enabled I get the following messages: me@machine:~/.cabal/$ cabal

How can I measure thread stack depth?

旧时模样 提交于 2019-12-12 07:51:41
问题 I have a 32-bit Java service with scalability problems: with high user count we run out of memory because of excessive thread count. In the long term, I plan to switch to 64-bit and to reduce the threads-per-user ratio. In the short term, I'd like to reduce the stack size (-Xss, -XX:ThreadStackSize) to get some more headroom. But this is risky because if I make it too small, I'm going to get StackOverflowErrors. How can I measure the average and maximum stack size for my application to guide

What tools can I use to determine the hardware requirements of my application?

为君一笑 提交于 2019-12-12 07:49:15
问题 For regular readers: The saga™ continues... My app runs fine on my development machine - which was purchased (5 years ago) as a fairly good gaming rig. As such, it's 64bit, has a 2.2GHz clock-speed and has 2GB of memory. The machines at work however, are standard Dell issue office computers and really struggle to even start my app, let alone run it. ( Explanation... I can imagine people screaming at me: "What on earth are you doing to require a spec like that?" Well, I'm doing a lot of real

Get gprof to profile based on wall-clock time?

烂漫一生 提交于 2019-12-12 07:35:13
问题 My understanding is that by default gprof takes into account CPU time. Is there a way to get it to profile based on wall-clock time? My program does a lot of disk i/o, so the CPU time it uses only represents a fraction of the actual execution time. I need to know which portions of the disk i/o take up the most time. 回答1: You can measure wall-clock time by using profiler from google-perftools. To switch google profiler to wall-clock mode, set the environment variable CPUPROFILE_REALTIME=1. 回答2

Php Xdebug Proflling - Understand what to check

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:37:33
问题 I'm new with XDebug. I see it like a "must have" tool to make sure the app im coding is done well. Here's my setup : - MAMP on Macbook Air. - Zend XDebug activated in PHP.INI - Webgrind for reports I made all the configuration to make the profiler running and it works great. My only question about this is what should I look and worry about. Some people says that the whole php process shouldn't be over 100ms maximum, closer to 50ms the better. Ok well, thats a good start... Any body could be

How to track the .net framework methods in “Call Tree” when profiling in Visual Studio

天大地大妈咪最大 提交于 2019-12-12 05:14:40
问题 I'm using profiler in Visual Studio 2008 like this, but when I profiling these codes I can only find the methods written by myself in "Call Tree" view. How can I track the inner/private methods defined in .NET Framework? 回答1: I do have to ask what is your purpose. Are you trying to find and remove performance problems? If so, any fixes you make can only be in your code. A simple way to find them is to run the program under the IDE and, while it is being slow, pause it and record the call

Line Level Profiling for iPhone

▼魔方 西西 提交于 2019-12-12 04:55:32
问题 I'm looking for a way to find out how much time is spent in each of my program's source line when running on the iPhone.Similar to what Shark can provide on the method/function level. Is this possible with the standard tools? Are there 3rd party tools that can provide this sort of granularity? It wouldn't be necessary for profiling data for every line of source code in the project to be collected. Ideally one would be able to select specific methods or functions whose performance would be

Which .NET performance and/or memory profilers will allow me to profile a DLL?

江枫思渺然 提交于 2019-12-12 04:28:13
问题 I write a lot of .NET based plug-ins for other programs which are usually compiled as a DLL which is up to the native application to start up. I've been using Equatec's profiler, which works great, but now would like something with more features, including the ability to profile memory usage. I tried out Red Gate's Ant Profiler, but as far as I can see there is no way to profile a DLL. The only option is to profile an EXE. So my question is what other profiling tools are available that will