Skip to content

Commit

Permalink
Flamegraph: fix encoding; fix passing args
Browse files Browse the repository at this point in the history
This closes #13.
  • Loading branch information
tkluck committed Dec 30, 2019
1 parent 8e8d46c commit 0e25edb
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions perllib/Devel/StatProfiler/Report.pm
Original file line number Diff line number Diff line change
Expand Up @@ -857,23 +857,25 @@ sub start_flamegraphs {
);

my $clickable = Devel::StatProfiler::FlameGraph->new(
directory => $directory,
traces => 'all_stacks_by_time.calls',
output => 'clickable_stacks_by_time.svg',
attributes => 'clickable_stacks.attrs',
args => {
total => $self->{aggregate}{total},
title => "Flame Graph",
directory => $directory,
traces => 'all_stacks_by_time.calls',
output => 'clickable_stacks_by_time.svg',
attributes => 'clickable_stacks.attrs',
extra_args => {
total => $self->{aggregate}{total},
title => "Flame Graph",
encoding => "utf-8",
},
);
my $zoomable = Devel::StatProfiler::FlameGraph->new(
directory => $directory,
traces => 'all_stacks_by_time.calls',
output => 'zoomable_stacks_by_time.svg',
attributes => 'zoomable_stacks.attrs',
args => {
total => $self->{aggregate}{total},
title => "Zoomable Flame Graph",
directory => $directory,
traces => 'all_stacks_by_time.calls',
output => 'zoomable_stacks_by_time.svg',
attributes => 'zoomable_stacks.attrs',
extra_args => {
total => $self->{aggregate}{total},
title => "Zoomable Flame Graph",
encoding => "utf-8",
},
);

Expand Down

0 comments on commit 0e25edb

Please sign in to comment.