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

Add new symbol directory layout by build-id /xx/xxxxxxxx.debug. #724

Merged
merged 1 commit into from Oct 10, 2022
Merged

Add new symbol directory layout by build-id /xx/xxxxxxxx.debug. #724

merged 1 commit into from Oct 10, 2022

Conversation

piwicode
Copy link
Contributor

@piwicode piwicode commented Sep 19, 2022

This protocol is already supported by various tools and lldb. e.g.: https://github.com/llvm-mirror/lldb/blob/d01083a850f577b85501a0902b52fd0930de72c7/source/Symbol/LocateSymbolFile.cpp#L311

Among others it is used by Fuchisa OS builds.

This change was unit tested with fetch_test.go.
It was manually tested with a FuchsaOS build by pointing pprof at $FUCHSIA_HOME/out/default/.build-id

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2022

Codecov Report

Merging #724 (2d56bd5) into main (70bd9ae) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 2d56bd5 differs from pull request most recent head 314f5ea. Consider uploading reports for the commit 314f5ea to get more accurate results

@@           Coverage Diff           @@
##             main     #724   +/-   ##
=======================================
  Coverage   64.67%   64.68%           
=======================================
  Files          45       45           
  Lines        6602     6603    +1     
=======================================
+ Hits         4270     4271    +1     
  Misses       1884     1884           
  Partials      448      448           
Impacted Files Coverage Δ
...c/github.com/google/pprof/internal/driver/fetch.go 63.01% <0.00%> (+0.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@aalexand aalexand left a comment

Choose a reason for hiding this comment

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

-help message needs to be updated.

Please also add to the PR description how the change was tested.

internal/driver/fetch.go Outdated Show resolved Hide resolved
aalexand
aalexand previously approved these changes Sep 29, 2022
@aalexand
Copy link
Collaborator

aalexand commented Oct 2, 2022

@piwicode CI fails due to wrong source code formatting.

@piwicode
Copy link
Contributor Author

piwicode commented Oct 3, 2022

This should be fine now. Thanks.

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.

None yet

3 participants