memray flamegraph report
Python Allocator: pymalloc
Reset
17:29:16.8Mar 11, 202517:29:16.917:29:1717:29:17.117:29:17.217:29:17.30B200MB400MB600MB800MB
Memray run stats
Command line: sol.py
Start time: Tue Mar 11 2025 17:29:16 GMT+0000 (Coordinated Universal Time)
End time: Tue Mar 11 2025 17:29:17 GMT+0000 (Coordinated Universal Time)
Duration: 0:00:00.685000
Total number of allocations: 77
Total number of frames seen: 8
Peak memory usage: 734.1 MiB
Python allocator: pymalloc
How to interpret flamegraph reports

The flame graph displays a snapshot of memory used across stack frames at the time when the memory usage was at its peak.

The vertical ordering of the stack frames corresponds to the order of function calls, from parent to children. The horizontal ordering does not represent the passage of time in the application: they simply represent child frames in arbitrary order.

On the flame graph, each bar represents a stack frame and shows the code which triggered the memory allocation. Hovering over the frame you can also see the overall memory allocated in the given frame and its children and the number of times allocations have occurred.

The Show/Hide Irrelevant Frames button can be used to reveal and hide frames which contain allocations in code which might not be relevant for the application. These include frames in the CPython eval loop as well as frames introduced by memray during the analysis.

You can find more information in the documentation.

Resident set size over time
17:29:16.8Mar 11, 202517:29:16.917:29:1717:29:17.117:29:17.217:29:17.30B200MB400MB600MB800MB
Resident sizeHeap sizeTimeMemory Size
plotly-logomark