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: Function Level Profiling #6

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

Robadob
Copy link
Member

@Robadob Robadob commented Dec 8, 2023

Closes #3

@Robadob Robadob self-assigned this Dec 8, 2023
github-actions bot pushed a commit that referenced this pull request Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

❌ DANGER ❌

This pull request has modified workflows that created output. Close this now.

github-actions bot pushed a commit that referenced this pull request Jan 1, 2024
github-actions bot pushed a commit that referenced this pull request Jan 1, 2024
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
github-actions bot pushed a commit that referenced this pull request Jan 5, 2024
github-actions bot pushed a commit that referenced this pull request Jan 8, 2024
The third row represents `a_1()`, the only method called from global scope, therefore the first two rows represent Python's internal code for launching our script and can be ignored (by clicking on the third row).

The row following `a_1()` is split into three boxes representing `b_1()`, `time.sleep()` and `b_2()` in the order they were first called. Note that `b_1()` is called three times, but only has one box within the icicle diagram.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the order they were first called

This is correct for this example, but not in general.

It would appear they are ordered according to cumtime, unhelpfully not shown on hover/click in the left-hand column.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a play with this example and it doesn't clearly seem to be cumtime, tottime, or ncalls. It's a mystery although it normally corresponds with tottime.

github-actions bot pushed a commit that referenced this pull request Jan 8, 2024
github-actions bot pushed a commit that referenced this pull request Jan 9, 2024
github-actions bot pushed a commit that referenced this pull request Jan 10, 2024
@Robadob Robadob marked this pull request as ready for review January 10, 2024 09:33
@Robadob Robadob merged commit e55f8e8 into profiling-introduction Jan 10, 2024
2 checks passed
Robadob added a commit that referenced this pull request Jan 10, 2024
@Robadob Robadob deleted the profiling-functions branch January 10, 2024 09:34
Robadob added a commit that referenced this pull request Jan 10, 2024
Robadob added a commit that referenced this pull request Jan 10, 2024
Robadob added a commit that referenced this pull request Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant