nvdv / vprof

Visual profiler for Python
BSD 2-Clause "Simplified" License
3.95k stars 154 forks source link

vprof memory blowout #54

Closed ResidentMario closed 8 years ago

ResidentMario commented 8 years ago

Hey, I ran this library's profiler on my Mac OSX on a fairly simple apriori algorithm I wrote. It ate up all of the space on my disc and crashed the browser.

But the cool visuals in the repo pictures are clearly of the same order of magnitude in computation, so...what's up with that?

I've posted the code to an example repo for reproduction. Python version is 3.5. The file of interest is vprof.ipynb.

Thanks for your help!

nvdv commented 8 years ago

Thanks for reporting! It seems that it crashes browser because memory stats take too much RAM. Works better without m flag:

profiler.run(apriori.init_pass,
             'ch', # This is the "everything" option.
             args=("75000-out1.csv", 0.1))