profiling

How can I profile Perl regexes?

What's the best way to profile Perl regexes to determine how expensive they are? ...

What is your favorite free Netstat GUI / Connection Monitor app for Windows?

I need something a little more feature rich than Sysinternals TCPView (which I regularly use) ... but it also must be freeware. :) ...

Way to convert java.hprof.txt to binary hprof format?

I have a java.hprof.txt file (automatically generated after an OutOfMemoryError) which I would like to convert to the binary hprof format. Is there any easy way to do this? ...

Why is my WPF Treeview bound to LinqToSql classes being a memory hog?

I have a WPF App which is grinding to a halt after running out of memory... It is basically a TreeView displaying nodes, which are instances of Linq To Sql OR Generated class ICTemplates.Segment. There around 20 tables indirectly linked via associations to this class in the OR designer. <TreeView Grid.Column="0" x:Name="tvwSegments" ...

Profiling a multi-process program

I'd like to profile a program that forks and spawns several child processes. I want to see how much time is spent in some of the functions. What profiler can handle this job? ...

How do I enable the PostgreSQL function profiler?

This took me a while to figure out and I found the answer on a foreign-language wiki a number of weeks ago, and it was very helpful, so I thought I would share. ...

How do I profile and optimize an XSLT?

I have an XSLT for viewing XML files in the browser. The XSLT is naively written and currently takes a long time to execute (several minutes). My XML file is of modest size (~1 MiB), and other XSLTs for the same document that do different processing execute much more quickly. So I know it isn't the size of the XML that is the problem,...

How can I profile a JNI application using the Eclipse TPTP?

I need to profile a java application launched by the JNI invocation API from a C application, and naturally the TPTP tools seemed like a good place to start. However, I can start the application, but I have no idea how to connect to it for profiling. I realize this falls into the 'dumb newbie' bucket, but I really am kind of lost. Per...

sun.java2d.loops.ProcessPath$Point

I am profiling an application suddenly using a lot of memory, and i am getting this: sun.java2d.loops.ProcessPath$Point As being allocated almost 11.000.000 times. What is it, and is there a solution to this? ...

Profiling a COM application?

I have a big application written in Visual Basic 6 and I need to profile it. Is there something like ANTS Profiler but for COM applications? ...

Profiling a classic ASP application using AQTime

We have developed a large number of websites using ASP (jscript flavour), talking to the underlying intelligence layer (written in Delphi) through COM. These websites are running on IIS (5 and 6). Over the years this ASP layer has grown into something quite heavy (no business logic, but lots of controller/scenario/view/ajax/etc handling...

Using the "Very Sleepy" profiler to profile DLLs..

I have a DLL that I want to profile.. I tried to use Very Sleepy, but I can't seem to get the source file column to display which source file the functions came from, all it displays is "unknown".. Anyway, I'm really baffled on how to use this app.. Can anyone point me to some help? There's not much documentation on it and it seems like...

Where can I find code profiling and/or code coverage modules that work with mod_perl2?

Is there a way to get this functionality under mod_perl2? And can it be triggered via web requests as opposed to the command line? Or do I need to fake whatever $ENV variables and query strings and cookies that my script requires and use the command line somehow? Google and CPAN searches all seem to point to things that either don't e...

How to trace and profile all low level calls (c libraries) being used by a mod_perl or a mod_php application?

I've seen once on a site, a call graph digging into the most low level libraries of a web request initiated by a PHP appplication with call timings and summary. Seems to me that this is a great way to spot the reason of bottlenecks that aren't obvious while profiling PHP-only code. Something like strace does but with far more detail. ...

How to perform Xperf callstack capture on 64b OS?

I have installed Xperf performance analyzer from Windows SDK and captured a trace as described in the documentation using following command: xperf -on SysProf -stackwalk profile Still, the stack trace does not contain any callstack data. My platform is Vista 64b. Are there any special settings or tricks needed to capture callstacks o...

Is There a Profiler for Windows Scripting Host Code?

Are there any profilers that can profile code that runs under WSH (VBScript, JavaScript, WSF)? Other than hand instrumenting with trace statements, what's a good way to profile code running under WSH? ...

Confusing gprof output

I ran gprof on a C++ program that took 16.637s, according to time(), and I got this for the first line of output: % cumulative self self total time seconds seconds calls s/call s/call name 31.07 0.32 0.32 5498021 0.00 0.00 [whatever] Why does it list 31.07% of time if ...

C# How can I determine where the slow parts of my code are?

I've not be coding long so I'm not familiar with which technique is quickest so I was wondering if there was a way to do this in VS or with a 3rd party tool? Thanks ...

Reducing Django Memory Usage. Low hanging fruit?

My memory usage increases over time and restarting Django is not kind to users. I am unsure how to go about profiling the memory usage but some tips on how to start measuring would be useful. I have a feeling that there are some simple steps that could produce big gains. Ensuring 'debug' is set to 'False' is an obvious biggie. Can any...

Efficiency, Benchmarking, Speed-testing, Performance

Hi, I am trying to write a script whose efficiency I am trying to measure. I have a couple of questions:- For small applications, is this kind of profiling required? Or am I getting paranoid? (assuming most code is decently efficient/no infinite loops) Against what should I benchmark this? What should I compare against? Below is the e...