有哪些比较好的计算程序运行时间的工具?比如相应的lib之类,有什么比较好的技巧和注意的地方?
1
ywencn Apr 14, 2013
木有听懂。。。
|
2
crazybubble Apr 15, 2013
你可以通过在main function里的头尾取当前时间,然后相减得到运行时间。或者可以去找找profiling tool,那种是专门用来评测程序运行性能的工具,不仅能告诉你程序跑了多少时间,还能够告诉你哪部分时间花的最久等等的信息。
|
3
jetbillwin Apr 15, 2013
time
|
4
willwen Apr 15, 2013
$ time node test
|
5
xinhugo Apr 15, 2013
ManicTime(小道君推荐的)
|
6
judezhan Apr 17, 2013
time
|
7
pengdu Apr 17, 2013
1, linux: time
2, c++: gprof 3, 自己在函数里面写桩,用#define来控制 |
8
bgtwoigu Apr 18, 2013
intel vtune
|