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

Bail out fast when no demangling is requested #915

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

mtrofin
Copy link
Contributor

@mtrofin mtrofin commented Dec 5, 2024

Avoid trying to demangle functions one by one; besides, demangleSingleFunction doesn't quite behave correctly when no demangling is requested.

Avoid trying to demangle functions one by one; besides, `demangleSingleFunction` doesn't quite behave correctly when **no** demangling is requested.
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 66.94%. Comparing base (0ed6a68) to head (21b8781).
Report is 57 commits behind head on main.

Files with missing lines Patch % Lines
internal/symbolizer/symbolizer.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #915      +/-   ##
==========================================
+ Coverage   66.86%   66.94%   +0.07%     
==========================================
  Files          44       44              
  Lines        9824     9859      +35     
==========================================
+ Hits         6569     6600      +31     
- Misses       2794     2820      +26     
+ Partials      461      439      -22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -257,6 +257,10 @@ func Demangle(prof *profile.Profile, force bool, demanglerMode string) {
}

options := demanglerModeToOptions(demanglerMode)
// bail out fast to avoid any parsing, if we really don't want any demangling.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

aalexand
aalexand previously approved these changes Dec 6, 2024
@aalexand aalexand merged commit 61a79c6 into google:main Dec 6, 2024
49 checks passed
@mtrofin mtrofin deleted the patch-1 branch December 6, 2024 05:04
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.

3 participants