Use two-pass over input data to speed up chart building.
authorMilian Wolff <mail@milianw.de>
Sun, 11 Oct 2015 16:09:43 +0000 (18:09 +0200)
committerMilian Wolff <mail@milianw.de>
Sun, 11 Oct 2015 21:40:22 +0000 (23:40 +0200)
commitc81fece8e150431b4c5675f8c98a0c317787952b
treeca0a7a361dd67b8bc137891751414a919a63158a
parent45778b4b171ceea21aa695d627a568f8a24241d5
Use two-pass over input data to speed up chart building.

This way, we can look at the top N hotspots after the first parse,
and then quickly iterate over the file again, discarding most lines.
Only the lines for (de-)allocations must be looked at, everything
else can be reused from the first parse.

Now, we won't spend minutes/hours to create chart data, as we can
look at the explicit hotspots which we found once before. No more
costly merging or sorting of the allocation data on every timestamp.
accumulatedtracedata.cpp
accumulatedtracedata.h
gui/parser.cpp