I have added a new command inside radare which stands for '?t' its argument
should be a radare command to be executed and will print out the execution
time of the command.
I have added this command for profiling reasons. In r2 the timediffing stuff
has been added inside r_util, so you can use the r_prof_start() and
r_prof_end()
functions to calculate the fine-grained execution time for a command.
The idea is to be able to determine in which proportion is radare2
faster than
radare1. The current results are quite interesting, but we have to think
that
radare2 is almost incomplete and it is not actually comparable with radare1,
but for having an idea, an hexdump is 12x faster and disassembling 25x.
Example of use:
radare: radare2
?t pd 20 ?t pd 20
... ...
0.002561 0.000126
Enjoy
--pancake
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org