The Tprof tool is a timer profiler that identifies what code is running on the CPU during a user-specified time interval.
Tprof 工具是一个计时器剖析器,可以识别出在用户指定的一个时间间隔内哪些代码在 CPU 上运行。
The optimized code is now running faster than the non-optimized code, which you can see by comparing the interval times of each run.
现在优化的代码比未优化的代码运行速度更快,您可以通过比较每次运行的时间间隔看到这一点。
Note that you can extend the code shown in Listing 3 to allow additional management operations, such as stopping or modifying the interval between successive message transfers.
注意,可以扩展清单3的代码来加入更多的管理操作,例如停止消息传递或修改成功消息传递之间的时间间隔。
应用推荐