Julia Evans on Nostr: just used memray to find out where my python program was allocating memory and was ...
just used memray to find out where my python program was allocating memory and was super impressed by how easy it was to use
https://github.com/bloomberg/memray the steps were just:
1. `memray run python3 my_program.py`
2. copy and paste the snippet it prints out ("memray flamegraph memray-manage.py.37954.bin") to generate a flamegraph
3. open the html flamegraph in my browser
Published at
2026-06-08 15:09:09 UTCEvent JSON
{
"id": "62099cd58fef792f62b2c8d8799688b091116a9adbe817abac5ea1211d34a0fb",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1780931349,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/116715116944465735",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "just used memray to find out where my python program was allocating memory and was super impressed by how easy it was to use https://github.com/bloomberg/memray \n\nthe steps were just:\n\n1. `memray run python3 my_program.py`\n2. copy and paste the snippet it prints out (\"memray flamegraph memray-manage.py.37954.bin\") to generate a flamegraph\n3. open the html flamegraph in my browser",
"sig": "ae9e219520c4b5e9f48bfdd80eea1391b704e084322094a87b838ef4940398120e957406d4b41ee262189943158470d324fc1648211d6e6dae4487767a13a116"
}