Skip to content

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

Merged
sentrivana merged 3 commits intomasterfrom
txiao/fix/add-function-name-to-profiler-frame-cache
Jun 13, 2023
Merged

fix(profiler): Add function name to profiler frame cache#2164
sentrivana merged 3 commits intomasterfrom
txiao/fix/add-function-name-to-profiler-frame-cache

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