profiling

What exactly does C++ profiling (google cpu perf tools) measure?

I trying to get started with Google Perf Tools to profile some CPU intensive applications. It's a statistical calculation that dumps each step to a file using `ofstream'. I'm not a C++ expert so I'm having troubling finding the bottleneck. My first pass gives results: Total: 857 samples 357 41.7% 41.7% 357 41.7% _write$UN...

Jerky/juttery (core-)animation in a screensaver?

I've built a screensaver for Leopard which utilises core-animation. It doesn't do anything overly complicated; uses a tree of CALayers and CATextLayers to produce a "table" of data in the following structure: - root › maincontainer › subcontainer › row [multiple] › cell [multiple] › text layer At most the...

How to learn advanced ms sql server?

I have a strong database background but very little practical experience with ms sql server. I want to learn the tools, the architecture, profiling and tuning. Besides browsing around for little bits and pieces of information, I'm actually looking for larger guides. Books, training, series of articles, etc. How do you recommend I start? ...

Profiling C++ with Google Perf tools and Dynamic Libraries

I'm trying to profile a C++ application, that I did not write, to get a sense for where the major computation points are. I'm not a C++ expert and even less so C++ debugging/profiling expert. I believe I am running into a (common?) problem with dynamic libraries. I compile link to Google CPU Profiler using (OS X, G++): env LIBS=-lpro...

In what way do many graphical components affect the performance of a Swing GUI?

I've creating a Java Swing application and I realized that I have many many components on a form. It's not that my interface is cluttered, but nevertheless the total amount can be quite high (hundreds) because the user can enable additional parts of the interface and there have to be list-like repeating panels on the form. Additionally...

How would you break down and log the execution times of different parts of your application?

We have built a web application that accepts SOAP messages, does some processing, calls out to another web service, massages the response and sendd it back to the original caller. We'd like to log, in a single line, the different execution times for these different steps. We use log4j with the JBossWS stack. In other words, we'd like th...

Find cpu-hogging plugin in multithreaded python

I have a system written in python that processes large amounts of data using plug-ins written by several developers with varying levels of experience. Basically, the application starts several worker threads, then feeds them data. Each thread determines the plugin to use for an item and asks it to process the item. A plug-in is just a p...

Profiling self and arguments in python?

How do I profile a call that involves self and arguments in python? def performProfile(self): import cProfile self.profileCommand(1000000) def profileCommand(self, a): for i in a: pass In the above example how would I profile just the call to profileCommand? I figured out I need to use runctx for argument, but how...

Can a call to WaitHandle.SignalAndWait be ignored for performance profiling purposes?

I just downloaded the trial version of ANTS Performance Profiler from Red Gate and am investigating some of my team's code. Immediately I notice that there's a particular section of code that ANTS is reporting as eating up to 99% CPU time. I am completely unfamiliar with ANTS or performance profiling in general (that is, aside from self...

Howto debug a (slow) linker on a debian system

Hello, at my company we have a really annoying problem with our linker (ld 2.17). It links very very slow on a relatively fast system (Core Duo, 2GB Ram) and i don't really now how to fix this. It takes about five to ten minutes to compile a relatively big project (which takes about 5 seconds to link on my Gentoo system). Personally i ...

Benchmarking small code samples in C#, can this implementation be improved?

Quite often on SO I find myself benchmarking small chunks of code to see which implemnetation is fastest. Quite often I see comments that benchmarking code does not take into account jitting or the garbage collector. I have the following simple benchmarking function which I have slowly evolved: static void Profile(string descript...

Memory profiler for .NET Compact Framework

Is there a tool I could use for profiling (memory) a .NET compact framework 3.5 application (Windows Mobile)? Thanks! ...

Python-Hotshot error trying to profile a simple program

Hi all, I was trying to learn how to profile a simple python program using hotshot, but am facing a weird error, import sys import hotshot def main(argv): for i in range(1,1000): print i if __name__ == "__main__": prof = hotshot.Profile("hotshot_edi_stats") b,c = prof.runcall(main(sys.argv)) prof.close() and the output, ...

Trying to track down a memory leak / garbage-collection problem in Java.

This is a problem I have been trying to track down for a couple months now. I have a java app running in that processes xml feeds and stores the result in a database. This has been giving intermittent resource problems that are very difficult to track down. Background: On the production box (where the problem is most noticeable), i do n...

Further information about last_query_cost in MySQL?

Hi, When doing query optimization, the SHOW STATUS query returns values that are easy to understand with some practice and explanation. But last_query_cost is obscure and poorly documented. The only thing explained is that it must be read as an anti-macho value: the smaller the better. But do we have further information about this hi...

How to get time elapsed in milliseconds

Since performance of string concatenation is quite weak in VB6 I'm testing several StringBuilder implementations. To see how long they're running, I currently use the built-in Timer function which only gives me the number of seconds that have passed after midnight. Is there a way (I guess by importing a system function) to get somet...

Code Profiling Tools for Perl

I need to test Perl Application ( File operation , Data base operation..etc ) . I am looking for some profile tool for Perl code is there any tools for Perl Code Profling like gprof in Linux ...

How to profile each call to a function?

I want to profile my execution in a non-standard way. Using gprof, Valgrind, Oprofile... for a given function, I only get the mean of its execution time. What I would like is to obtain the standard deviation of this execution time. Example: void a() sleep ( rand() % 10 + 10 ) void b() sleep ( rand() % 14 + 2 ) main for (1 .. 10...

Searching for block-count profiling tool with block counts written next to blocks

I'm using gcov for block-count profiling, and I'm finding the output very difficult to read. I am used to lcc and its excellent bprint program, which rewrites the source code, placing the count immediately in front of the block in question. So instead of 6772619: 63: assert(p == pts->limit || !DELIMP(p, delims)); 6772619: 63-bloc...

measure linq to sql performance and stats

I have a web app that creates a DataContext at the beginning of the request and lets go at the end. I would like to have some handy stats for each page like - number of inserts and time spent - number of deletes and time spent - number of updates and time spent - number of selects and time spent I have it all set for inserts/updates/de...