Skip to content

profile: preserve inline frame columns in location merge keys - #1016

Open
cuishuang wants to merge 1 commit into
google:mainfrom
cuishuang:fix-profile-bug
Open

profile: preserve inline frame columns in location merge keys#1016
cuishuang wants to merge 1 commit into
google:mainfrom
cuishuang:fix-profile-bug

Conversation

@cuishuang

Copy link
Copy Markdown
Contributor

The location merge key allocates three fields per inline frame (function, line, and column), but indexes each frame using a stride of two. As a result, the function ID of a later inline frame overwrites the column of the preceding frame.

For example, locations that differ only in the column of a non-terminal inline frame can be incorrectly merged, causing samples from distinct source locations to be aggregated together.

Use a stride of three when encoding function IDs, line numbers, and column numbers in the location key.

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.

1 participant