leesinebee

Results 1 issues of leesinebee

## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 增加cpu使用率的功能,能够方便的查看每个线程在单位时间内的cpu使用率 #### 你的解决方案是什么 (what is your solution) 1. 使用scheduler hook函数统计每个线程占用cpu的时间。 2. 通过定时器事件周期性计算cpu使用率并更新显示。 3. 命令开始执行时注册hook函数,动态创建统计所需的内存并绑定到线程的userdata,命令退出时清除hook函数,并释放内存。命令退出后不占用cpu和内存。 4. 默认情况下使用tick计数统计cpu使用率,如果用户重写了三个weak函数,则能够使用硬件计数精确的统计每个线程的cpu使用率和cpu cycle。 5. 使用pingpang...