Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cherry-pick] Refine user experience for profiler #41989

Conversation

rainyfly
Copy link
Contributor

@rainyfly rainyfly commented Apr 19, 2022

PR types

Others

PR changes

Others

Describe

  1. 优化了一下RecordEvent的Python接口逻辑,防止在Profiler关闭,空转情况下由于pybind带来性能下降。
  2. 优化了一下统计表单的百分比的计算逻辑,满足用户一般的使用习惯。
    266d98986fb4902bcb5963c02ac2855a
    假设表中就这3个op, 序号1的百分比,就是(1.cpu)/(1.cpu)+(2.cpu)+(3.cpu) 。然后内层的百分比,以上层为1进行计算,比如1.1的百分比,是(1.1.cpu)/ (1.cpu)。
  3. 加入专门Kernel表单,让用户可以直接看到各个kernel的时间占比。

@paddle-bot-old paddle-bot-old bot added contributor External developers status: proposed labels Apr 19, 2022
@paddle-bot-old
Copy link

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@XiaoguangHu01 XiaoguangHu01 merged commit 2ea5e02 into PaddlePaddle:release/2.3 Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants