Profilers Instrumenting Vs Sampling

后端 未结 2 2348
遥遥无期
遥遥无期 2021-02-14 23:46

I am doing a study to between profilers mainly instrumenting and sampling. I have came up with the following info:

  • sampling: stop the execution of program, take PC
2条回答
  •  半阙折子戏
    2021-02-15 00:19

    The interrupts generated by a sampling profiler generally add an insignficant amount of time to the total execution time, unless you have a very short sampling interval (e.g. < 1 ms).

    With instrumented profiling there can be a large overhead, e.g. on small leaf functions that get called many times, as the calls to the instrumentation library can be significant compared to the execution time of the function.

提交回复
热议问题