Content deleted Content added
m →Use of profilers: -</code> +{{quotation}} |
|||
Line 9:
== Use of profilers ==
[[File:CodeAnalyst3.png|thumb|Graphical output of the [[CodeAnalyst]] profiler.]]
{{quotation|
The output of a profiler may be:
Line 17 ⟶ 16:
* A statistical ''summary'' of the events observed (a '''profile''')
:Summary profile information is often shown annotated against the source code statements where the events occur, so the size of measurement data is linear to the code size of the program.
/* ------------ source------------------------- count */
0001 IF X = "A" 0055
Line 24 ⟶ 23:
0004 ELSE
0005 IF X = "B" 0055
* A stream of recorded events (a '''trace''')
:For sequential programs, a summary profile is usually sufficient, but performance problems in parallel programs (waiting for messages or synchronization issues) often depend on the time relationship of events, thus requiring a full trace to get an understanding of what is happening.
|