Changes

Jump to: navigation, search

Profiling

13 bytes added, 10:49, 30 September 2018
Profiling Granularity and Techniques
Most profiling systems determine resource usage on a per-function basis. Data may be gathered through two different techniques:
# Sampling - interrupting the program frequently (such as 10 000 times/second) and determining which function is currently executing (by comparing the [[Register#Program_Counter|program counter]] to the debuginfo of the program).
# Instrumentation - adding code to the binary or using debug controls (such as [[Debugger|breakpoints]]) to determine when and how often specific actions take place, such as entry/exit to/from a function/procedure/method.
== Profiling Tools ==

Navigation menu