diff --git a/.changelog/390.bugfix b/.changelog/390.bugfix new file mode 100644 index 00000000..bb4bb991 --- /dev/null +++ b/.changelog/390.bugfix @@ -0,0 +1 @@ +Speed up rendering of flamegraphs in cases where there are many smaller allocations, by filtering out allocations smaller than 0.2% of total memory. Future releases may re-enable showing smaller allocations if a better fix can be found. \ No newline at end of file diff --git a/memapi/src/flamegraph.rs b/memapi/src/flamegraph.rs index 005f8ae8..334a9e1b 100644 --- a/memapi/src/flamegraph.rs +++ b/memapi/src/flamegraph.rs @@ -135,6 +135,7 @@ pub fn get_flamegraph>( options.reverse_stack_order = reversed; options.color_diffusion = true; options.direction = flamegraph::Direction::Inverted; + options.min_width = 0.2; // Maybe disable this some day; but for now it makes debugging much // easier: options.pretty_xml = true;