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

Episode: Timeline Profiling #9

Open
Robadob opened this issue Jan 1, 2024 · 0 comments
Open

Episode: Timeline Profiling #9

Robadob opened this issue Jan 1, 2024 · 0 comments
Assignees

Comments

@Robadob
Copy link
Member

Robadob commented Jan 1, 2024

Learning Objectives

  • execute a Python program via viztracer to collect a timeline of a Python program’s execution
  • use vizviewer visualise the profiling timeline output by viztracer
  • interpret vizviewer timelines, to identify performance patterns(?) during a program’s execution

Exercises

A couple of examples where timeline profiling is appropriate:

  • e.g. a program that has uniform execution pattern
  • e.g. a program that scales over time

Keypoints

These will need updating when the content has been written.

  • A python program can be timeline profiled with viztracer via python -m viztracer -o <output file> -- <script name/arguments>
  • The output file from viztracer can be visualised via python -m vizviewer <output file>
  • Timeline profiling displays the timeline of execution, highlighting individual function calls and how performance patterns evolve over a program's execution
  • TODO: when is timeline profiling appropriate over function lvl?
@Robadob Robadob self-assigned this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant