Profiling (computer programming): Difference between revisions

Content deleted Content added
added prog exec box
Line 81:
 
===Instrumentation ===
This technique effectively adds instructions to the target program to collect the required information. Note that [[instrumenting]] a program can cause performance changes, and may in some cases lead to inaccurate results and/or [[heisenbug]]s. The effect will depend on what information is being collected, and on the level of detail required. For example, adding code to count every procedure/routine call will probably have less effect than counting how many times each statement is obeyed. A few computers have special hardware to collectingcollect information; in this case the impact on the program is minimal.
 
Instrumentation is key to determining the level of control and amount of time resolution available to the profilers.