Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

performance overhead

grndfl
Beginner
282 Views
Hi there!
I'm wondering what the performance overhead for monitoring performance events on the CPU is. Say I have an app that continuously monitors some event on the CPU, what is the performance hit for doing that "measurement"?
0 Kudos
1 Reply
TimP
Honored Contributor III
282 Views
I guess you'll have to define your question more accurately, and measure it yourself. Normal use of VTune and relatives activates only a few event counters at one time, and sets "sample after" value high enough that the overhead is negligible. This might be called "continually monitoring" those few events. It generally works well for getting an event count over a period of 10 seconds or more. If, by "continuously," you mean setting sample after value extremely low, you could make the overhead quite large, but this would be semi-practical only over a much shorter time interval, such as a few milliseconds.
0 Kudos
Reply