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

fix(profiler): Add function name to profiler frame cache #2164

Merged

Conversation

Zylphrex
Copy link
Member

@Zylphrex Zylphrex commented Jun 9, 2023

Wrapper functions can take on the same name as the wrapped function. This means that if a decorator is used to wrap different functions, even though the filename and line number will be the same for all instances of the frame, the function name can vary. Add the function name to the cache to avoid these cache collisions.

Wrapper functions can take on the same name as the wrapped function. This means
that if a decorator is used to wrap different functions, even though the
filename and line number will be the same for all instances of the frame, the
function name can vary. Add the function name to the cache to avoid these cache
collisions.
@Zylphrex Zylphrex requested a review from sentrivana June 12, 2023 17:12
@sentrivana sentrivana enabled auto-merge (squash) June 13, 2023 09:22
@sentrivana sentrivana merged commit a4378de into master Jun 13, 2023
@sentrivana sentrivana deleted the txiao/fix/add-function-name-to-profiler-frame-cache branch June 13, 2023 09:27
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