开发者

profiling valgrind itself

开发者 https://www.devze.com 2023-02-04 21:14 出处:网络
Can we measure the ratio of time it takes to r开发者_StackOverflowun a program natively and under Valgrind?man time:

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

精彩评论

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

关注公众号