4

I am trying to learn the difference between Very Sleepy and Callgrind for profiling. The code that I intend to profile is written in C++ and works under both Linux and Windows.

On Linux, I was able to use Callgrind to look at the Self and inclusive relative costs. From what I understand, Callgrind uses instrumented profiling technique and takes considerable time. However, Very Sleepy uses statistical profiling and is very quick. Since both uses different approaches to profiling, I cannot compare the results from the two.

Is there a way that I can do some sort of profile comparison on both Linux and Windows? Unfortunately, Callgrind is unavailable for Windows and vice versa for Very Sleepy.

Olivier Pirson
  • 737
  • 1
  • 5
  • 24
hypersonics
  • 1,064
  • 2
  • 10
  • 23

2 Answers2

2

No. Such a comparison is between two unlike things. Use sampling when to get accurate profiling you cannot afford overhead. Use instrumentation when you need to understand control flow over time.

mabraham
  • 2,806
  • 3
  • 28
  • 25
0

Although, I couldn't get the answer for the first question. I have found a new tool that works on both Windows and Linux for C++ code profiling. Its called as CodeXL from AMD and its free.

http://developer.amd.com/tools-and-sdks/opencl-zone/codexl/

Bonus if you have AMD processors or Catalyst graphics processors as some of the other capabilities of the tool becomes available.

hypersonics
  • 1,064
  • 2
  • 10
  • 23