nvdv / vprof

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

astronomic ram usage #94

Open Neywiny opened 5 years ago

Neywiny commented 5 years ago
Description

Code has 187 lines including white space and comments. It would take a few minutes to run. I couldn't even run it on my work laptop without it crashing.

How to reproduce

Run the profilers? That's all I'm doing

Actual results

As measured on my home computer, 7.78 GB of ram needed to display the results after running the code. EDIT: correction it takes gigs to generate the heatmap, and only sometimes takes a lot of ram to display the results.

Expected results

A few megs or even up to a gig of ram.

Version and platform

version 0.37.6 on Ubuntu 18.04 (work) Windows 10/Ubuntu 18.04 (home) python 3.6

ThomasParistech commented 2 years ago

Screenshot from 2022-04-11 10-16-24 Got the same trouble on a script that takes roughly a minute to run. Once I got the log "Starting HTTP server...", the memory started to grow linearly, until I stopped it manually to avoid freezing my computer

version 0.38, python 3.8, ubuntu 20