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

Trouble Loading Saved Profile Data #49

Open
jamesETsmith opened this issue Jan 22, 2022 · 0 comments
Open

Trouble Loading Saved Profile Data #49

jamesETsmith opened this issue Jan 22, 2022 · 0 comments

Comments

@jamesETsmith
Copy link

Summary

Hello! Thanks for this package, I've had a great experience using it so far. The only small snag that I've hit is when trying to load saved data.

Reproducing the problem

For example, if I have some profiling data saved in _03_profile_data.jlprof (saved using save("_03_profile_data.jlprof", Profile.retrieve()...)) and I try to load it into pprof like:

julia> data = load("_03_profile_data.jlprof")
julia> pprof(data[1], data[2])

It looks as if all profiling data is in an unknown call and I can't access any of the fine-grain information. But if I create a flamegraph first and then load that into pprof, everything seems to work fine.

julia> data = load("_03_profile_data.jlprof")
julia> g = flamegraph(data[1]; lidict=data[2])
julia> pprof(g)

Next Steps

The second solution above is fine with me for now since it's only an extra line, but I feel like I'm not doing something correctly. Have I missed something here?

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

No branches or pull requests

1 participant