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

Potential UI improvements for the statistical profiler #45

Open
bbbbbbbbba opened this issue Aug 31, 2022 · 0 comments
Open

Potential UI improvements for the statistical profiler #45

bbbbbbbbba opened this issue Aug 31, 2022 · 0 comments

Comments

@bbbbbbbbba
Copy link

I find the statistical profiler to be rather useful for line profiling, but I think there are some ways in which the UI can be improved for the statistical profiler:

  1. Since precise timing information is not available, the result output by print_stat would not show any percentage information. I think it would be more helpful if print_stat prints the percentage of hits when timing information is not available.
  2. In examples in the documentation, irrelevant lines are replaced with "[...]", which makes it easier to understand the examples. I think it might actually be possible to do this programmatically by detecting consecutive lines with hit counts below a threshold. This will help especially since threading.py will always appear in the results but is usually irrelevant.

If people agree with these ideas, maybe I can find some time to implement them and create a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant