flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flameCHART keeps generating flameGRAPH.svg

brainstorm opened this issue · comments

When the --flamechart option is given, the default -o should be flamechart.svg instead of flamegraph.svg?

Similarly, the title of the chart/graph should change accordingly to avoid confusion and overwriting flamegraphs with flamecharts accidentally. For instance, the following image was generated as a --flamechart, but the title reads Flame Graph:

Screenshot 2023-01-16 at 4 47 24 pm

... generated from https://github.com/umccr/htsget-rs/pull/137/files#diff-737fb5e48b4dcf12a9d9e04bc36ff2f3bce43cf1ee94a626142e5c3f83fea6a8R55-R58

I think the output file name refers to the name of the tool, not the style of chart, so I think changing it would be confusing more than helpful. If you want to submit a PR to change the title, I'd be happy to review it.

I find your proposal even more confusing: changing the title is ok but not the filename? Very inconsistent DX, so I think I'll just leave it as is and perhaps contribute something more substantial than a 2 word change pullrequest X"D

Other than that, very nice crate, btw, thanks!