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

Profile accuracy #177

Open
zuivu opened this issue Jun 2, 2022 · 1 comment
Open

Profile accuracy #177

zuivu opened this issue Jun 2, 2022 · 1 comment

Comments

@zuivu
Copy link

zuivu commented Jun 2, 2022

Since SnakeViz only supports cProfile and pstats modules which don't provide extremely high accuracy (resolution of 0.001 ~ 1000 ticks/second) compare to those from time module in the table below). I wonder if is there a way to use/produce profiler from SnakeViz with higher tick rate (top 3 choices from the table below). Also, how much more value do you think I can gain from these higher tick rate options, compared to just using the current method (cProfile).

Link to table
image

@Helveg
Copy link

Helveg commented Oct 12, 2022

I'm not sure this applies to Snakeviz as you can provide a custom timing function to the Profile class of both profile and cProfile: https://docs.python.org/3/library/profile.html#using-a-custom-timer

The generated profiles should be completely readable by snakeviz. Is this not the case?

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

2 participants