I'm trying to debug a memory leak. It's a script that runs as a daemon, and has dependencies in about 10K lines of code in 30 different files. After a while you see the memory usage start creeping up.
I used heapy to determine that that it's a dict that's growing, but how can I find out which file that dict lives in?