Skip to content
Discussion options

You must be logged in to vote

Memray does not yet have a stable, supported API for generating reports. The only documented API that we expose is the tracking API - memray.Tracker, along with the memray.FileDestination and memray.SocketDestination and memray.FileFormat that are used with it. We've always intended to eventually provide a public API for parsing and processing the raw capture files, but we've never gotten around to it. All of which is to say: please don't use memray.reporters.flamegraph.FlameGraphReporter.render to produce a flame graph, please instead use subprocess.run(["memray", "flamegraph", ...]) to generate the flame graph.

Also, this is unrelated to your question, but

with Tracker(output_file):
    s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by godlygeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants