sdk/tools/heaptrack.git
8 years agoPrevent off-by-one data access in chart models.
Milian Wolff [Thu, 24 Mar 2016 22:49:19 +0000 (23:49 +0100)]
Prevent off-by-one data access in chart models.

8 years agoMake code more error resilient when parsing data files.
Milian Wolff [Thu, 24 Mar 2016 21:34:08 +0000 (22:34 +0100)]
Make code more error resilient when parsing data files.

8 years agoCheck validity of allocation index when parsing data file.
Milian Wolff [Thu, 24 Mar 2016 21:33:36 +0000 (22:33 +0100)]
Check validity of allocation index when parsing data file.

8 years agoNever divide by zero.
Milian Wolff [Thu, 24 Mar 2016 19:33:10 +0000 (20:33 +0100)]
Never divide by zero.

8 years agoIntern caller/callee data by location data.
Milian Wolff [Thu, 24 Mar 2016 19:31:27 +0000 (20:31 +0100)]
Intern caller/callee data by location data.

8 years agoAdd caller/callee table view of data.
Milian Wolff [Thu, 24 Mar 2016 18:21:54 +0000 (19:21 +0100)]
Add caller/callee table view of data.

8 years agoReuse common AllocationData class, with operator+=, operator+.
Milian Wolff [Thu, 24 Mar 2016 17:08:07 +0000 (18:08 +0100)]
Reuse common AllocationData class, with operator+=, operator+.

Simplifies the code in some areas.

8 years agoMake it possible to select different cost sources for the flame graph.
Milian Wolff [Wed, 23 Mar 2016 15:09:35 +0000 (16:09 +0100)]
Make it possible to select different cost sources for the flame graph.

Also put the bottom-down action into the new control toolbar.

8 years agoDon't print unknown file/line location in tooltip.
Milian Wolff [Wed, 23 Mar 2016 14:14:57 +0000 (15:14 +0100)]
Don't print unknown file/line location in tooltip.

8 years agoColorize model cost cells background based on relative cost to total.
Milian Wolff [Tue, 15 Mar 2016 19:18:00 +0000 (20:18 +0100)]
Colorize model cost cells background based on relative cost to total.

Maniphest Task: https://phabricator.kde.org/T1709

8 years agoProperly skip 32bit versions of operator new.
Milian Wolff [Wed, 9 Mar 2016 17:42:33 +0000 (18:42 +0100)]
Properly skip 32bit versions of operator new.

8 years agoFix compile warnings on 32bit machines
Milian Wolff [Wed, 9 Mar 2016 17:20:38 +0000 (18:20 +0100)]
Fix compile warnings on 32bit machines

8 years agoUpdate libbacktrace from GCC trunk@234085.
Milian Wolff [Wed, 9 Mar 2016 17:15:47 +0000 (18:15 +0100)]
Update libbacktrace from GCC trunk@234085.

8 years agoDon't show functions that triggered no temporary allocations in top list.
Milian Wolff [Mon, 29 Feb 2016 13:39:46 +0000 (14:39 +0100)]
Don't show functions that triggered no temporary allocations in top list.

8 years agoAdd executable to measure malloc overhead.
Milian Wolff [Fri, 26 Feb 2016 20:47:30 +0000 (21:47 +0100)]
Add executable to measure malloc overhead.

8 years agoFilter rows that did not leak anything in TopProxy.
Milian Wolff [Fri, 26 Feb 2016 17:15:44 +0000 (18:15 +0100)]
Filter rows that did not leak anything in TopProxy.

8 years agoInclude total system memory and peak RSS usage in output.
Milian Wolff [Thu, 25 Feb 2016 19:44:39 +0000 (20:44 +0100)]
Include total system memory and peak RSS usage in output.

We now track the RSS by parsing /proc/self/statm on every timestamp.
The total system memory is taken from sysconf.

The RSS may potentially miss its true peaks, which can be handled in
the future via getrusage(). Still, this is a nice and useful addition
I think.

8 years agoShow minimal statistics directly after heaptrack finished.
Milian Wolff [Mon, 22 Feb 2016 12:56:37 +0000 (13:56 +0100)]
Show minimal statistics directly after heaptrack finished.

8 years agoPass correct data to dl_iterate_phdr.
Milian Wolff [Wed, 24 Feb 2016 01:40:53 +0000 (02:40 +0100)]
Pass correct data to dl_iterate_phdr.

I wonder why this didn't crash before...

8 years agoDon't access invalid memory for tiny or broken input files.
Milian Wolff [Wed, 24 Feb 2016 01:31:21 +0000 (02:31 +0100)]
Don't access invalid memory for tiny or broken input files.

8 years agoPut summary text into three columns to save vertical space.
Milian Wolff [Wed, 24 Feb 2016 00:58:06 +0000 (01:58 +0100)]
Put summary text into three columns to save vertical space.

8 years agoDisplay the time when the memory peak was encountered.
Milian Wolff [Wed, 24 Feb 2016 00:41:32 +0000 (01:41 +0100)]
Display the time when the memory peak was encountered.

8 years agoRemove resize-to-contents call.
Milian Wolff [Wed, 24 Feb 2016 00:37:03 +0000 (01:37 +0100)]
Remove resize-to-contents call.

8 years agoAdd summary tab and display all top functions there.
Milian Wolff [Wed, 24 Feb 2016 00:24:47 +0000 (01:24 +0100)]
Add summary tab and display all top functions there.

8 years agoShow error when we failed to parse an input file.
Milian Wolff [Tue, 23 Feb 2016 22:59:56 +0000 (23:59 +0100)]
Show error when we failed to parse an input file.

8 years agoUse monospace font family in tooltips.
Milian Wolff [Tue, 23 Feb 2016 22:48:45 +0000 (23:48 +0100)]
Use monospace font family in tooltips.

Bug got fixed upstream in Qt but for older Qt this improves
readability significantly.

8 years agoDon't show 'backtrace: ' without a backtrace in the tooltip.
Milian Wolff [Tue, 23 Feb 2016 22:48:10 +0000 (23:48 +0100)]
Don't show 'backtrace: ' without a backtrace in the tooltip.

8 years agoAdd stacks model to display full backtrace for selection.
Milian Wolff [Tue, 23 Feb 2016 22:45:45 +0000 (23:45 +0100)]
Add stacks model to display full backtrace for selection.

8 years agoDisplay shorter basename for files in tables by default.
Milian Wolff [Tue, 23 Feb 2016 22:21:09 +0000 (23:21 +0100)]
Display shorter basename for files in tables by default.

8 years agoDon't descend into children of invisible flamegraph items.
Milian Wolff [Tue, 9 Feb 2016 20:17:48 +0000 (21:17 +0100)]
Don't descend into children of invisible flamegraph items.

8 years agoOptimize TreeModel: cache KFormat to prevent repeated allocations.
Milian Wolff [Fri, 22 Jan 2016 12:26:12 +0000 (13:26 +0100)]
Optimize TreeModel: cache KFormat to prevent repeated allocations.

8 years agoLet KDE*CompilerSettings change the policies in the project
Aleix Pol [Thu, 28 Jan 2016 13:57:37 +0000 (14:57 +0100)]
Let KDE*CompilerSettings change the policies in the project

As suggested in ECM documentation.

8 years agoDecrease indentation which allows us to show deeper backtraces with less space to...
Milian Wolff [Thu, 21 Jan 2016 20:03:54 +0000 (21:03 +0100)]
Decrease indentation which allows us to show deeper backtraces with less space to the left.

There is still work left to be done to have a nice GUI for
deep backtraces, potentially by not increasing the indentation
depth when the merged backtrace has no forks.

8 years agoMake chart tooltips better readable.
Milian Wolff [Fri, 15 Jan 2016 13:06:37 +0000 (14:06 +0100)]
Make chart tooltips better readable.

8 years agoUse std::tie instead of std::make_tuple for lexicographical ordering.
Milian Wolff [Mon, 4 Jan 2016 21:41:47 +0000 (22:41 +0100)]
Use std::tie instead of std::make_tuple for lexicographical ordering.

std::tie takes the arguments by reference, whereas make_tuple copies
them. We want the former.

See also: http://www.cppsamples.com/common-tasks/lexicographic-ordering.html

8 years agoShow data as soon as it is available.
Milian Wolff [Wed, 16 Dec 2015 12:37:22 +0000 (13:37 +0100)]
Show data as soon as it is available.

This way one can investigate the data table while waiting for the
charts to be built up, which can take some time for large data
files.

8 years agoSort cost columns initially in descending order.
Milian Wolff [Wed, 16 Dec 2015 11:56:54 +0000 (12:56 +0100)]
Sort cost columns initially in descending order.

8 years agoAdd some indication on the file load process.
Milian Wolff [Wed, 16 Dec 2015 11:56:42 +0000 (12:56 +0100)]
Add some indication on the file load process.

8 years agoDisplay pretty-printed byte sizes in tree model.
Milian Wolff [Wed, 16 Dec 2015 11:30:42 +0000 (12:30 +0100)]
Display pretty-printed byte sizes in tree model.

8 years agoSet proper axis type for temporary allocation plot.
Milian Wolff [Wed, 16 Dec 2015 10:59:08 +0000 (11:59 +0100)]
Set proper axis type for temporary allocation plot.

8 years agoDon't duplicate allocation infos when reparsing.
Milian Wolff [Wed, 16 Dec 2015 10:34:49 +0000 (11:34 +0100)]
Don't duplicate allocation infos when reparsing.

8 years agoReuse PointerMap for backwards compatibility.
Milian Wolff [Tue, 15 Dec 2015 17:34:30 +0000 (18:34 +0100)]
Reuse PointerMap for backwards compatibility.

This also makes the size histogram work with older data files.

8 years agoAdd size histogram to heaptrack_gui.
Milian Wolff [Tue, 15 Dec 2015 16:46:04 +0000 (17:46 +0100)]
Add size histogram to heaptrack_gui.

This tracks the number of times allocations of a certain size are
requested and displays the data in a histogram. Note that the sizes
are binned in the following byte ranges:

0-8
9-16
17-32
33-64
65-128
129-256
257-512
513-1024
>1024

8 years agoReject data files of newer heaptrack versions.
Milian Wolff [Mon, 14 Dec 2015 17:48:03 +0000 (18:48 +0100)]
Reject data files of newer heaptrack versions.

8 years agoOptimize tracking of active allocations.
Milian Wolff [Mon, 14 Dec 2015 17:24:34 +0000 (18:24 +0100)]
Optimize tracking of active allocations.

Instead of mapping the pointer to a pair of allocated size and
trace index, we intern the pair and map the pointer to a 32bit index.
This assumes that not more than 4.294.967.295 different pairs occur,
which could theoretically be broken by allocating different sizes
in a loop. Practically, I've never seen this happen. If it really
breaks we can always bump it to a 64bit index later.

Furthermore, this patch introduces a new PointerMap, which drastically
reduces the memory overhead of tracking the allocations. The benchmark
which also gets added here, shows that its overhead is only ~20%
compared to the 100% overhead of a simple hash map. Also note that
even google's sparse_hash_map only gets down to 50% overhead.
Even better, the PointerMap implementation is faster than google's
sparse_hash_map. This is possible by leveraging some information about
memory allocations, which return pointers to pages. Thus the pointers
are clustered and we can shrink a 64bit pointer to an common shared
base pointer and a small 16bit offset.

On my machine, the runtime performance is close to that of the simple
hash map. As such, I decided to move this allocation tracking into
heaptrack_interpret itself. This drastically reduces the file size
of heaptrack data files, sometimes cutting the size into half. Even
better, this speeds some heaptrack benchmarks, as less data is written
to disk. And of course all of this leads to an much improved
performance of heaptrack_gui and heaptrack_print.

8 years agoAlso make the number of sub traces of peaks configurable.
Milian Wolff [Fri, 11 Dec 2015 20:34:33 +0000 (21:34 +0100)]
Also make the number of sub traces of peaks configurable.

8 years agoMake number of reported peaks configurable
David Landell [Fri, 11 Dec 2015 20:30:37 +0000 (21:30 +0100)]
Make number of reported peaks configurable

Make it possible to control number of reported peaks in heaptrack_print

REVIEW: 126282

From 98a061bee3879fcb5c01728d63c39b6773705108 Mon Sep 17 00:00:00 2001
From: David Landell <david.landell.dl@gmail.com>
Date: Wed, 2 Dec 2015 19:04:59 +0100
Subject: [PATCH] Make number of reported peaks configurable

8 years agoAdd .reviewboardrc file for rbt integration.
Milian Wolff [Fri, 11 Dec 2015 20:27:54 +0000 (21:27 +0100)]
Add .reviewboardrc file for rbt integration.

8 years agoAdd version to heaptrack data files.
Milian Wolff [Fri, 11 Dec 2015 20:17:14 +0000 (21:17 +0100)]
Add version to heaptrack data files.

8 years agoDon't check module map sanity in non-debug builds of heaptrack.
Milian Wolff [Fri, 11 Dec 2015 20:13:23 +0000 (21:13 +0100)]
Don't check module map sanity in non-debug builds of heaptrack.

8 years agoShow temporary allocations in heaptrack_gui.
Milian Wolff [Thu, 10 Dec 2015 14:56:48 +0000 (15:56 +0100)]
Show temporary allocations in heaptrack_gui.

8 years agoFind temporary allocations in heaptrack_print.
Milian Wolff [Thu, 10 Dec 2015 14:35:43 +0000 (15:35 +0100)]
Find temporary allocations in heaptrack_print.

8 years agoFix regression: the pointer index is still 64bit.
Milian Wolff [Wed, 9 Dec 2015 20:45:59 +0000 (21:45 +0100)]
Fix regression: the pointer index is still 64bit.

8 years agoFix compiler warning
Milian Wolff [Wed, 9 Dec 2015 19:39:58 +0000 (20:39 +0100)]
Fix compiler warning

8 years agoOptimize: Reduce memory cost for tracking active allocations.
Milian Wolff [Mon, 7 Dec 2015 22:10:58 +0000 (23:10 +0100)]
Optimize: Reduce memory cost for tracking active allocations.

We split the hash into two, one for small allocations up to
numeric_limits<uint32_t>::max, and one for the bigger rest. This
allows us to reduce the cost by up to a factor of 2 for some apps.
A notable example here is heaptrack_gui itself, as it does tons of
small allocations for its lookup tables, which are long-lived.

In one test case this reduces the memory consumption of heaptrack by
up to 1GB for me.

8 years agoUse uint32_t for indices.
Milian Wolff [Mon, 7 Dec 2015 21:48:43 +0000 (22:48 +0100)]
Use uint32_t for indices.

This allows us to save some memory and opens up more possibilities
for future optimizations. And 4,294,967,295 should still be more
than enough space for our lists of traces, strings etc. pp.

8 years agoOptimize: Reduce memory consumption of RowData for TreeModel by ~20%.
Milian Wolff [Sun, 6 Dec 2015 16:46:18 +0000 (17:46 +0100)]
Optimize: Reduce memory consumption of RowData for TreeModel by ~20%.

By interning the common LocationData we can save quite some memory
for large data sets. Still, the large tree is still easily hogging
up gigabytes of memory...

8 years agoGenerate flame graph in background thread.
Milian Wolff [Sat, 5 Dec 2015 01:27:55 +0000 (02:27 +0100)]
Generate flame graph in background thread.

Also add a temporary text that indicates we are generating the graph.

8 years agoMake it possible to switch between bottom-up/top-down flame graph.
Milian Wolff [Sat, 5 Dec 2015 01:20:14 +0000 (02:20 +0100)]
Make it possible to switch between bottom-up/top-down flame graph.

The context menu has a new action now to switch the view mode of
the flame graph.

8 years agoBuild flame graph on demand.
Milian Wolff [Sat, 5 Dec 2015 00:50:39 +0000 (01:50 +0100)]
Build flame graph on demand.

Reduces memory consumption when the flame graph is not being displayed.

8 years agoRemove duplicate component
Milian Wolff [Sun, 15 Nov 2015 14:01:47 +0000 (15:01 +0100)]
Remove duplicate component

8 years agoDefault CMAKE_BUILD_TYPE to RelWithDebInfo.
Milian Wolff [Sun, 15 Nov 2015 13:56:42 +0000 (14:56 +0100)]
Default CMAKE_BUILD_TYPE to RelWithDebInfo.

We need compiler optimizations for the heaptrack code, as it
is otherwise really slow to run.

8 years agoAlways pass false for exe in elf_add call.
Adrian Băcîrcea [Sun, 25 Oct 2015 15:53:33 +0000 (17:53 +0200)]
Always pass false for exe in elf_add call.

Basically, if you pass the isExe flag to elf_add, libbacktrace will
see that it's an ET_DYN executable which means that the sections
can be relocated on load so it will defer to dl_iterate_phdr to get
the real addresses. It will do that only when you call
backtrace_pcinfo which, behind the scenes, ends up calling
backtrace_initialize and that will do the dl_iterate_phdr for the
executable which is wrong since the executable we want to get the
symbols on is not the current one (which is heaptrack_interpret) and
we already get the base addresses correctly from the main process
through the pipe. So there's no need to ever pass isExe = true.

8 years agoReserve space for chart data.
Milian Wolff [Fri, 23 Oct 2015 09:43:29 +0000 (11:43 +0200)]
Reserve space for chart data.

8 years agoOptimize: evaluate top-down data in parallel to chart data.
Milian Wolff [Fri, 23 Oct 2015 09:36:35 +0000 (11:36 +0200)]
Optimize: evaluate top-down data in parallel to chart data.

For a larger data file, this reduces the parse time from ~21s
to 15s on my machine.

8 years agoOptimize: only do one hash lookup instead of three per IpIndex.
Milian Wolff [Fri, 23 Oct 2015 09:11:12 +0000 (11:11 +0200)]
Optimize: only do one hash lookup instead of three per IpIndex.

This is still one of the hotspots when parsing large data files,
but at least it makes it a bit faster.

8 years agoOptimize: Replace QHash with std::array.
Milian Wolff [Fri, 23 Oct 2015 08:49:47 +0000 (10:49 +0200)]
Optimize: Replace QHash with std::array.

We now know that chart cost data is monotonously indexed and can
thus use a plain array over a QHash. This is much quicker to index
into in Parser::handleTimeStamp, and removes a hotspot found with
perf when analyzing a big data file.

8 years agoMinor: move newline for readbility
Milian Wolff [Thu, 10 Sep 2015 15:05:51 +0000 (17:05 +0200)]
Minor: move newline for readbility

8 years agoIncrease max chart datapoints to 500.
Milian Wolff [Sun, 11 Oct 2015 21:40:08 +0000 (23:40 +0200)]
Increase max chart datapoints to 500.

8 years agoOnly allocate 100 brushes for the flamegraph.
Milian Wolff [Sun, 11 Oct 2015 16:19:05 +0000 (18:19 +0200)]
Only allocate 100 brushes for the flamegraph.

More colors are probably not discernible anyways. This way,
we can save a couple of megabytes of memory for large input
files.

8 years agoUse two-pass over input data to speed up chart building.
Milian Wolff [Sun, 11 Oct 2015 16:09:43 +0000 (18:09 +0200)]
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.

8 years agoOnly create one chart data per second.
Milian Wolff [Sun, 11 Oct 2015 14:01:52 +0000 (16:01 +0200)]
Only create one chart data per second.

This way we can run heaptrack on large data files.

In the future, this will be restructured to make it configurable.

8 years agoMake sure the ChartMergeData is nothrow-move-assignable.
Milian Wolff [Sun, 11 Oct 2015 13:46:58 +0000 (15:46 +0200)]
Make sure the ChartMergeData is nothrow-move-assignable.

8 years agoCache ip addresses.
Milian Wolff [Sun, 11 Oct 2015 13:46:42 +0000 (15:46 +0200)]
Cache ip addresses.

8 years agoFix wrong assertion
Milian Wolff [Sun, 11 Oct 2015 13:46:30 +0000 (15:46 +0200)]
Fix wrong assertion

8 years agoDisable modeltest.
Milian Wolff [Sun, 11 Oct 2015 12:28:15 +0000 (14:28 +0200)]
Disable modeltest.

I'll write a proper test soon and add the ModelTest there.

8 years agoRestructure test code layout, import catch and use that.
Milian Wolff [Fri, 25 Sep 2015 05:00:33 +0000 (07:00 +0200)]
Restructure test code layout, import catch and use that.

8 years agoSimplify CMakeLists.txt - we always use malloc now.
Milian Wolff [Fri, 25 Sep 2015 04:27:22 +0000 (06:27 +0200)]
Simplify CMakeLists.txt - we always use malloc now.

8 years agoUse malloc within libbacktrace for the usecase of heaptrack.
Milian Wolff [Fri, 25 Sep 2015 04:16:32 +0000 (06:16 +0200)]
Use malloc within libbacktrace for the usecase of heaptrack.

This library is only being used from within the external interpret
process and never from a signal handler. Only there the mmap-approach
makes sense. Using malloc instead is significantly faster and makes
using heaptrack with clang++ and debug symbols usuable.

8 years agoCleanup and rename leaked in gui to consumed.
Milian Wolff [Tue, 22 Sep 2015 07:10:06 +0000 (09:10 +0200)]
Cleanup and rename leaked in gui to consumed.

8 years agoFix chart model by splitting it up by type.
Milian Wolff [Tue, 22 Sep 2015 06:56:50 +0000 (08:56 +0200)]
Fix chart model by splitting it up by type.

Since the number of columns can be different per type
we need separate models. This finally makes the stacked
charts work properly.

8 years agocleanup
Milian Wolff [Tue, 22 Sep 2015 02:22:08 +0000 (04:22 +0200)]
cleanup

8 years agoDeduplicate code
Milian Wolff [Mon, 21 Sep 2015 02:28:10 +0000 (04:28 +0200)]
Deduplicate code

8 years agoFormat tooltip cost and time.
Milian Wolff [Mon, 21 Sep 2015 02:17:48 +0000 (04:17 +0200)]
Format tooltip cost and time.

8 years agoKeep the chart data associated with a constant column.
Milian Wolff [Sat, 19 Sep 2015 06:47:21 +0000 (08:47 +0200)]
Keep the chart data associated with a constant column.

This is neccessary to have the association with a color and
later a legend label make sense.

What's left to be done now is adding some sorting on top to
have the most costly column at the bottom of the model.

8 years agoMerge entries for chart data and sort in descending order.
Milian Wolff [Sun, 13 Sep 2015 13:46:51 +0000 (15:46 +0200)]
Merge entries for chart data and sort in descending order.

8 years agoFix tooltips and show stacked graph.
Milian Wolff [Fri, 11 Sep 2015 18:18:51 +0000 (20:18 +0200)]
Fix tooltips and show stacked graph.

8 years agoUse correct axis and labels in time charts.
Milian Wolff [Thu, 10 Sep 2015 16:02:23 +0000 (18:02 +0200)]
Use correct axis and labels in time charts.

8 years agoAdd basic tooltip functionality for stacked time charts
Milian Wolff [Thu, 10 Sep 2015 15:33:39 +0000 (17:33 +0200)]
Add basic tooltip functionality for stacked time charts

8 years agostart with stacked time charts
Milian Wolff [Wed, 9 Sep 2015 18:41:56 +0000 (20:41 +0200)]
start with stacked time charts

8 years agoUse the TopDownData as input to generate the FlameGraph.
Milian Wolff [Sun, 6 Sep 2015 17:37:40 +0000 (19:37 +0200)]
Use the TopDownData as input to generate the FlameGraph.

8 years agoAdd Top-Down tree model.
Milian Wolff [Sun, 6 Sep 2015 17:26:27 +0000 (19:26 +0200)]
Add Top-Down tree model.

8 years agoAlso sum up peaks.
Milian Wolff [Sun, 6 Sep 2015 16:20:56 +0000 (18:20 +0200)]
Also sum up peaks.

The models have no temporal notation thus if two peaks happen
at a different time, you cannot say that this is the real
peak memory consumption of a merged allocation.

But taking the absolute peak of peaks is very confusing as
then the leaked number can be less than the peak.

8 years agoBuild tooltip ondemand which speeds initial parsing up tremendously.
Milian Wolff [Sun, 6 Sep 2015 16:02:10 +0000 (18:02 +0200)]
Build tooltip ondemand which speeds initial parsing up tremendously.

We save thousands of allocations this way. And the tooltip becomes more
expressive as well. This does remove the number of allocations from the graph
iteself though, but often it's not visible there anyways and the width already
represents the same data.

8 years agoDon't forget selection when resizing the flamegraph widget.
Milian Wolff [Sun, 6 Sep 2015 15:41:19 +0000 (17:41 +0200)]
Don't forget selection when resizing the flamegraph widget.

8 years agoCleanup the code and add some comments
Milian Wolff [Sun, 6 Sep 2015 15:37:42 +0000 (17:37 +0200)]
Cleanup the code and add some comments

8 years agoMerge branch 'flamegraph'
Milian Wolff [Sun, 6 Sep 2015 15:20:27 +0000 (17:20 +0200)]
Merge branch 'flamegraph'

8 years agoCleanup code
Milian Wolff [Fri, 4 Sep 2015 16:33:29 +0000 (18:33 +0200)]
Cleanup code

8 years agoImplement zooming as done in original FlameGraph SVG.
Milian Wolff [Fri, 4 Sep 2015 16:32:10 +0000 (18:32 +0200)]
Implement zooming as done in original FlameGraph SVG.

Maximize parent frames, hide all siblings of these parents and relayout
the children to the available parent width.

This is much better from a usability POV imo and has proven itself in
in the SVG implementation. The previous take of mine was simply too
confusing.

8 years agoUse mem color scheme from upstream FlameGraph.
Milian Wolff [Fri, 4 Sep 2015 15:43:17 +0000 (17:43 +0200)]
Use mem color scheme from upstream FlameGraph.