Content deleted Content added
→Use of profilers: set off apparent blockquote, which probably shouldn't be here |
→Statistical profilers: highlight direct quote, which probably shouldn't be here. |
||
Line 66:
Some profilers operate by [[Sampling (statistics)|sampling]]. A sampling profiler probes the target program's [[program counter]] at regular intervals using [[operating system]] [[interrupt]]s. Sampling profiles are typically less numerically accurate and specific, but allow the target program to run at near full speed.
The resulting data are not exact, but a statistical approximation.
In practice, sampling profilers can often provide a more accurate picture of the target program's execution than other approaches, as they are not as intrusive to the target program, and thus don't have as many side effects (such as on memory caches or instruction decoding pipelines). Also since they don't affect the execution speed as much, they can detect issues that would otherwise be hidden. They are also relatively immune to over-evaluating the cost of small, frequently called routines or 'tight' loops. They can show the relative amount of time spent in user mode versus interruptible kernel mode such as [[system call]] processing.
|