kimikage / ProfileSVG.jl

Write flame graphs to SVG format and explore them interactively in Jupyter, Pluto, etc.
MIT License
53 stars 7 forks source link

`Profile.fetch` vs `Profile.retrieve` #43

Closed goretkin closed 4 years ago

goretkin commented 4 years ago

I haven't looked deeply into this, so disregard if it's not helpful, but I noticed this package uses

help?> Profile.fetch
  fetch() -> data

  Returns a copy of the buffer of profile backtraces. Note that the values in data have meaning only on this machine in the current session, because it depends on the exact
  memory addresses used in JIT-compiling. This function is primarily for internal use; retrieve may be a better choice for most users.

and I was wondering if there's a reason not to use Profile.retrieve.

goretkin commented 4 years ago

I should have looked just a little deeper and see that whatever the reason, it's due to FlameGraphs.jl.