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

profiling: add a Python profiler to find out where we spend time #474

Open
ocervell opened this issue Nov 2, 2024 · 0 comments
Open

profiling: add a Python profiler to find out where we spend time #474

ocervell opened this issue Nov 2, 2024 · 0 comments

Comments

@ocervell
Copy link
Contributor

ocervell commented Nov 2, 2024

Examples:

pyinstrument -r html --from-path secator x httpx test.com
py-spy top -- secator worker

Pros / cons:

  • pyinstrument: cannot instrument multi-threaded app (unless we embed code) like the secator worker
  • py-spy: cannot output HTML, only SVG, but works for multi-threaded app
  • yappi: cannot profile a CLI command directly (unless we embed code)
  • OpenTelemetry Celery Instrumentation: see if it can profiles or if it's just CPU / Mem
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