yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.1k stars 182 forks source link

High memory usage of profiler_gui #95

Open miki151 opened 6 years ago

miki151 commented 6 years ago

I compiled easy_profiler from master on Ubuntu, and profiler_gui is using extreme amounts of memory, up to 12GB (after that it was killed), especially while loading the .prof file. It's also quite slow when the time axis is zoomed out.

The .prof file is 700MB large, I'm not sure if that's a lot of data, but it only represents a few seconds of my program running, and I haven't annotated a lot of functions.

cas4ey commented 6 years ago

Hi @miki151 Gui demands much more memory than core library due to it's graphics representation and statistics. 700MB is quite large file - nearly 35-40 millions of blocks (function calls). Additionally, gui has double memory usage when opening a file (or receiving data over network), because old data is destroyed only after successful open operation. After that, memory usage should fall to 6GB I think. You could help by uploading your .prof file somewhere and post a link or send it to me to v.s.zarubkin@gmail.com for analysis (if it is not confidential, of course).