Reputation: 11
Can we measure the ratio of time it takes to run a program natively and under Valgrind?
Upvotes: 1
Views: 145
Reputation: 15180
I suggest you :
time myprogram
then
time valgrind myprogram
And some basic calculation ;)
my2c
Upvotes: 0
Reputation: 1116
man time:
time - time a simple command or give resource usage
So, something like:
This will give you the total, user and system times for that command to complete. You can then do the calculation yourself.
Upvotes: 1