HP PAK Performance Analysis Tools User's Guide
8 Chapter 1
Overview of HP PAK Tools
Using TTV
Using TTV
The TTV (Thread Trace Visualizer) is a utility that reads the trace files
produced by the instrumented thread library (libpthread_tr.sl or
libpthread_tr.a). TTV provides a graphical format for the
presentation and analysis of the data (see Figure 1-2).
Figure 1-2 TTV Display
To produce thread traces, you need to link your application to the
instrumented thread library. For details on using the instrumented
thread library and producing thread traces, refer to the file
/usr/include/sys/trace_thread.h.
When you enter the ttv command, you can supply it with a list of trace
files. For example, if your trace files are stored in the directory
my_traces, and the threads of interest are for process 1542, you would
invoke TTV as follows:
ttv my_traces/tr.1542.*