. . .
In Figure 14-5 we see the details of one run of our program (Code Example 14-1). The different
threads are shown as horizontal lines and specific probes are shown as different colored shapes,
squares, triangles, circles, etc. The time line can be scaled and individual events examined.
Figure 14-5. Main Data Display Window for TNF
In Figure 14-6 we see a histogram of method latencies. TNFview assumes that pairs of probes
ending in the words "start" and "end" are related and will produce graphs of latencies between the
time the "start" probe fires and when the "end" probe fires. In this example we see that the vast
majority of calls to give_friends_raise() took 20 ms (in this example the delay time was
20 ms), a few took zero seconds (these are the friends we couldn't find), and a few more took 10 or
30 ms (due to the 10 ms granularity of the system clock), and one last one took 50 ms (wonder
Figure 14-6. Histogram Display Window for TNF
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks