开发者

profiling valgrind itself

Can we measure the ratio of time it takes to r开发者_StackOverflowun a program natively and under Valgrind?


man time:

time - time a simple command or give resource usage

So, something like:

  1. time valgrind --tool=foo ./bar
  2. time ./bar

This will give you the total, user and system times for that command to complete. You can then do the calculation yourself.


I suggest you :

time myprogram

then

time valgrind myprogram

And some basic calculation ;)

my2c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜