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:
- time valgrind --tool=foo ./bar
- 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
精彩评论