profiling

How to debug a MemoryError in Python? Tools for tracking memory use?

I have a Python program that dies with a MemoryError when I feed it a large file. Are there any tools that I could use to figure out what's using the memory? This program ran fine on smaller input files. The program obviously needs some scalability improvements; I'm just trying to figure out where. "Benchmark before you optimize", as...

Visual Studio 2008 Performance Profiler Problems with ASP.NET

I've been trying, and failing, to get VS.NET 2008 to profile an ASP.NET MVC application. When I try and start a profiling session I get a generic server 500 error from VS.NET: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:4750/foo/VSEnterpriseHelper.axd' returned...

accurately measure time python function takes

Hello, I need to measure the time certain parts of my program take (not for debugging but as a feature in the output). Accuracy is important because the total time will be a fraction of a second. I was going to use the time module when I came across timeit, which claims to avoid a number of common traps for measuring execution times. U...

How to profile a Django custom management command exclusively

I would like to profile a custom management command that is relatively CPU intensive (renders an image using PIL). When I use the following command I get all sorts of Django modules (admin, ORM etc) in my profiling results: python -m cProfile manage.py testrender I have removed all imports that can potentially import Django but I am g...

how to perform profiling for a website?

I currently have a django site, and it's kind of slow, so I want to understand what's going on. How can I profile it so to differentiate between: effect of the network effect of the hosting I'm using effect of the javascript effect of the server side execution (python code) and sql access. any other effect I am not considering due to t...

How do I profile `paster serve`'s startup time?

Python's paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I would like it to not fork a thread pool and quit as soon as it is ready to serve so the time after it's ready doesn't show up in the profile....

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse. ...

Cabal not installing dependencies when needing profiling libraries?

I want to compile my program with profiling, so I run: $ cabal configure --enable-executable-profiling ... $ cabal build ... Could not find module 'Graphics.UI.GLUT': Perhaps you havent installed the profiling libraries for package 'GLUT-2.2.2.0'? ... $ # indeed I have not installed the prof libs for GLUT, so.. $ cabal install...

MPSTAT show cpu usage average only during an application's execution

I want to know how much my application uses CPU time of each core while executing as well as the length of time it takes for program to end. for the latter I use linux "time" command. for the former I think I must use something like "mpstat". however I want mpstat to generate some logs only during my application execution and I don't kno...

Timing quartz task execution duration

Is there a standard way of logging the time Quartz takes to execute a task? I'm open to Spring based solutions as well, as I'm using both. ...

Creating memory snapshot from inside the code (Java)

Is there a possibility, that from inside your program, by calling some java library, make java create memory snapshot of that program? (default .hprof file) ...

Java memory leak detection tools

I am now trying to detect memory leak in our java codes. I understand there are a few of detection tools such as memory manager that comes with eclipse, and NetBeans. Based on your experience, which is the best free tool out there I can use? I tried memory manager, but it is not very easy to detect where the leak is. I heard that NetBean...

Profiling Library for .NET

Edit: I'm NOT asking for a way to implement a profiling library, I'm asking if there's one (preferably free) out there. Although there are a lot of commercial and free profilers for the .NET platform they all analyses (better or worse) your application code in a way that let's you see what method call or even line is consuming a lot of ...

Memory profiling for Java desktop application

Hi, My application loads a data set of approx. 85bm to 100mb each time. The application's memory limit is set to 512mb, and this is, theoretically, more than enough. However, I found that if, in a single run of the application, I opened and closed the data set 5 times, the total memory consumption steadily increases, until I get an out...

kcachegrind for RHEL 5.1

I'm about to perform profiling to application. I have vagrind, but kcachegrind is not installed. Tryied to compile without success. Where it can be obtained from for RHEL 5.1? ...

Can I export tables from kcachegrind?

I have generated a call profile with callgrind which I can turn into nice and clear tables using kcachegrind. Now I would like to discuss the result with others, thus I would like to export e.g. the "callers table" for one specific function. Apparently, kcachegrind does not provide such a functionality (at least in 0.4.5), does it? If ...

Tools to evaluate callgrind's call profiles?

Somehow related to this question, which tool would you recommend to evaluate the profiling data created with callgrind? It does not have to have a graphical interface, but it should prepare the results in a concise, clear and easy-to-interpret way. I know about e.g. kcachegrind, but this program is missing some features such as data ex...

Comparing java memory heap dumps: Memory profiling for Java desktop application

Hi, This is a more specific question to follow up on another question that I have asked recently. A correct answer for this question will earn a correct answer for that previous question too (since that is still in limbo)! Basically I have a Java desktop application with a memory leak issue. I am using the memory profiler in Netbeans I...

Alternatives to gprof

What other programs do the same thing as gprof? ...

How to use gmon.out besides gprof?

What programs use gmon.out? ...