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

Use relative paths instead of absolute paths when exporting a profile #58

Open
NHDaly opened this issue Feb 22, 2022 · 0 comments
Open

Comments

@NHDaly
Copy link
Member

NHDaly commented Feb 22, 2022

Using relative paths should allow you to open a profile produced on a different machine than your own, but still use the source view, which is one of the most useful aspects of PProf.

Also, when loading a profile, pprof takes an option to set a source file path, which can be used to lookup the relative paths, which makes this more useful.

I think this should be as simple as calling relpath in a couple places.

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

No branches or pull requests

1 participant