Two Methods of Software Profiling
Basic block
- a section of code that has one entry and one exit
- measures ideal time
Statistical sampling
- interrupts program execution and examines current location
- measures actual CPU cycles spent executing a line of code