View Full Version : timing functions

04-29-2009, 07:10 AM
I'm new to using totalview and debuggers.

threading my code with openmp shows almost twice of the slowdown comparing to single thread.

is there a way with totalview to find which parts of the code take the longest?
or some way to see the locks on the threads.


05-04-2009, 10:24 AM
Hello Kiril,

Tricky. We don't have any profiling in the current version of TotalView so you wouldn't be able to tell where the threads are spending most of their time. Certainly we will show which threads are active and which are sitting there waiting for something. This is not quite the lock info you were looking for (unless you are running on AIX. We have a Tools->Thread Objects that should only be active an AIX machines, and shows a bit more information about each thread) You can navigate back and forth between the threads to get a better idea of which each thread is doing at any particular time, and hold some if need be. The backtrace of each thread may also hold some idea of which might have a lock and which might be waiting for it.

I hope that helps,