Profiling with simulators

Profiling with a simulator is often much more accurate than native profiling. Normally, profiling information is obtained by periodically halting the program and recording the location of the program counter. This method is purely statistical and is subject to errors. Besides knowing which instruction it is simulating, a simulator also has a concept of how many machine clocks passed. This information tells the length of each instruction. This gives exact profiling information, subject to the accuracy of the simulator's model of the target processor.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.