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

feat(profiler): allow to preserve original stack trace order #6441

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

m-kus
Copy link
Contributor

@m-kus m-kus commented Sep 30, 2024

This PR allows to preserve the original order of the stack trace as opposed to the current approach when items are sorted by weight (and stack entry).

Backwards compatible.


This change is Reviewable

@m-kus m-kus force-pushed the feat/profiler-ordered-stack-trace branch 4 times, most recently from d9a7e0e to 6401512 Compare October 4, 2024 17:54
Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @m-kus)

@m-kus m-kus force-pushed the feat/profiler-ordered-stack-trace branch from 6401512 to 1e5f389 Compare October 6, 2024 23:00
Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @m-kus)

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @m-kus)

a discussion (no related file):
why is this required?


Copy link
Contributor Author

@m-kus m-kus left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)

a discussion (no related file):

Previously, orizi wrote…

why is this required?

It is useful to be able to iterate through the stack trace in the execution order both for troubleshooting and post-processing purposes. In particular I need this to be able to collapse loops (and recursive calls in general) which make flame charts hard to analyze.

If you mean the most recent push, that was clippy fix + rebase.


Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @m-kus)

@orizi orizi added this pull request to the merge queue Oct 7, 2024
Merged via the queue into starkware-libs:main with commit 5c6d24f Oct 7, 2024
44 checks passed
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

Successfully merging this pull request may close these issues.

2 participants