Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In software
engineering, program profiling, software profiling or simply profiling,
a form of dynamic program analysis (as opposed to static code analysis),
is the investigation of a program's behavior using information gathered
as the program executes. The usual purpose of this analysis is to
determine which sections of a program to optimize - to increase its
overall speed, decrease its memory requirement or sometimes both. A
(code) profiler is a performance analysis tool that, most commonly,
measures only the frequency and duration of function calls, but there
are other specific types of profilers (e.g. memory profilers) in
addition to more comprehensive profilers, capable of gathering extensive
performance data. An instruction set simulator which is also - by
necessity - a profiler, can measure the totality of a program's
behaviour from invocation to termination.