profiling

Accurate timing of functions in python

I'm programming in python on windows and would like to accurately measure the time it takes for a function to run. I have written a function "time_it" that takes another function, runs it, and returns the time it took to run. def time_it(f, *args): start = time.clock() f(*args) return (time.clock() - start)*1000...

Analyzing Code for Efficiency?

What kinds of tools do you use to determine the efficiency of code? Do you use home grown applications that run a statistically significant number of tests, or some commercial product? Do you use your own knowledge to test certain areas of your code, or some tool that analyzes your code for weak spots? ...

Removing existing profile providers

Hello, Q1 Book suggests that before we register new SqlProfileProvider, we should remove any existing profile providers using <clear> element. But: A) why must we use <clear> instead of <remove>? B) I assume that root web.config or machine.config don’t register (by default) any profile provider, and thus using <clear> element is no...

Where can I find a profiler for C# applications to be used in Visual Studio 2008?

I'm looking for a profiler for my C# application being developed in Visual Studio 2008. I am looking for something that is inexpensive (open sourced is preferred) and that it can integrate into VS2008. I found the Visual Studio Profiler but I do not know how to use it. I installed the Stand Alone version which depends on Visual Studio (n...

Valgrind automatic tests -- are they used somewhere?

Do you think that running set of automatic tests based on valgrind's tool suite makes sense? Did you hear about or see such setup in action? What automatic (free from human intuition) actions could such setup perform? ...

Instrumentation (diagnostic) library for C++

I'm thinking about adding code to my application that would gather diagnostic information for later examination. Is there any C++ library created for such purpose? What I'm trying to do is similar to profiling, but it's not the same, because gathered data will be used more for debugging than profiling. EDIT: Platform: Linux Diagnostic i...

Free VB6/VBA profiler and best Excel practices

We have a lot of reports that are generated via VBA & Excel. Only a small percentage of the reports are actual calculations - the majority of the work is sql calls and formatting/writing of cells. The longest of which takes several hours, the majority takes around 20-30 mins each. The VBA/Excel code plugs into a dll that the VB6 deskt...

Using gprof with pthreads

Can gprof be used to profile a multi-threaded program that uses pthreads? That is, will its output include the time used in all the threads? ...

Java performance tips

I have a program I ported from C to Java. Both apps use quicksort to order some partitioned data (genomic coordinates). The Java version runs fast, but I'd like to get it closer to the C version. I am using the Sun JDK v6u14. Obviously I can't get parity with the C application, but I'd like to learn what I can do to eke out as much pe...

How to profile Windows explorer.exe

Hi, What tool / technique would you recommend for Explorer.exe profiling? Mainly on Windows XP / x86... To avoid confusion it is not a system kind of question. Imagine, you have developed a BHO or another shell extension and you have to profile it. For now, I'm using AMD CodeAnalyst, but I'm looking for somethign better suiting for p...

Running Profiler from Command Line versus Visual Studio

Hi I am using Visual Studio 2008 built in profiler and DevPartner .NET profiler. I have option of running the profiler from Visual Studio or from command line? Does anyone know which option is recommended? Is it correct that running from Visual Studio would take more time compared to running from command line? Thanks. Dharmesh. htt...

How to explore which classes are loaded from which JARs?

Is there a way to determine which classes are loaded from which jars at runtime? I'm sure we've all been in JAR hell before. I've run across this problem a lot troubleshooting ClassNotFoundExceptions and NoClassDefFoundErrors on projects. I'd like to avoid finding all instances of a class in jars and using process of elimination on the...

Tools to profile function execution times of a .NET program

What tools are available to profile a .NET program by measuring function execution times and generating graphs to visualize the time spent at various points in the call graph? ...

iPhone/iPod filesystem speed

Does anyone out there have hard data from profiling the iPhone/iPod filesystem? I'm more interested in reading than writing. I was thinking of running a few tests, but thought I'd check to see if someone smarter and/or more time-rich had already done so. Specifically I'm interested in speed difference between many small files versus fe...

Custom prolog/epilog functions for profiling

Hello, Is it possible, with Visual Studio compilers, to write 2 functions that get called before calling into other functions and after the functions have executed? In gcc you could do that with __cyg_profile_func_*() functions: void __cyg_profile_func_enter(void *func_address, void *call_site ) __attrib...

Why is XDebug producing corrupted files?

I have XDebug enabled on my XAMPP installation. I've used XDebug + Wincachegrind to profile my code for some time. Recently XDebug started throwing some weird stuff into cachegrind.out files. Examples of weird stuff: fl=fl=php:internal fn=php::ini_set 127 7 and fl=C:\xampp\htdocs\drupal-5.7\includes\session.inc fn=sess_close 0 3 =1...

Using VADump to track memory usage - OpenProcess Failed c0000034

After reading an article in the most recent issue of MSDN magazine, I wanted to try using VADump to break down the memory usage of some applications I've written. The only copy of the executable on my PC is at: c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\winnt\vadump.exe No matter what combination of arguments I g...

Good memory profiling, leak and error detection for Windows

I'm currently looking for a good memory / leak detection tool for Windows. A few years ago, I used Numega's Boundschecker, which was VERY good. Right now it seems to have been sold to Compuware, which apparently sold it again to some other company. Trying to evaluate a demo of the current version has been so far very frustrating, in th...

PHP Profiler for a live system on top of Apache

I have a PHP website on a Apache server, and I would like to know if there are tools and other ways I can profile this to find bottlenecks on the code. What I need to know is what functions are taking long to process, etc. Something like gprof, except for PHP on live apache server. What are other ways to find bottlenecks in a PHP sys...

ASP.Net Worker Process Memory Profile Tools

We have a fairly high volume ASP.Net site written in c# using MS commerce server, running in a 32-bit environment. I see the worker process up to 980 megabytes quite often. I would like to profile this process and determine where any gains could be made in code to reduce the memory foot print of this site. My question what tools have wor...