Memgraph is a little tool to inspect and visualize the heap usage of your applications; it will give you a good idea of the general allocation behavio

GitHub - zevv/memgraph

submited by
Style Pass
2023-03-16 21:00:03

Memgraph is a little tool to inspect and visualize the heap usage of your applications; it will give you a good idea of the general allocation behavior of your code and show things like fragmentation, garbage collection behavior, leaking rates, interaction between threads, etc.

Memgraph traces all memory allocations by injecting a tiny shared library that overrides malloc() and free() and friends. Every allocation is drawn in real time in a little gui window with the relative addresses mapped to 2D hilbert space; where different colors will be used for different threads. The brightness of the allocations fades with time, showing you which allocations are new and which have been around for some time.

Memgraph is not a proper profiler, nor does it provide precise instrumentation. Instead it relies on the power of your own visual cortex to get a proper "feel" about the application's behavior.

Configure the maximum memory size to be displayed in the graph, the number in megabytes; when not specified, the default is 1024 (1Gb)

Leave a Comment