Color flag seems incorrect in the Usage instructions
The Usage section says to do --color=scala-compilation when you run Flamegraph, but that makes it all black and it's hard to distinguish the flamegraph segments:
If I remove that flag, we get nicer colors:
--color= doesn't seem to be a valid flag in the version of Flamegraph I used, so maybe it used to be?
Either way, I'm proposing removing that line from the docs.
Apologies, misunderstood the syntax. The flamegraph tool does take a --color flag, and it sorts colors reasonably when I use --java.
I still get all black when using --color=scala-compilation but perhaps that's the nature of my code sample or I'm supposed to get scala-compilation imported somehow
Hey @acloudmovingby. I wasn't able to reproduce the issue. I followed these steps:
- Cloned the
scalacenter/scalac-profilingrepository:git clone [email protected]:scalacenter/scalac-profiling.git cdinto theexternal/Flamegraphdirectory- Executed the
git submodule update --init(an important part) - Run the command including
--color=scala-compilation:
/flamegraph.pl \
--hash --countname="μs" \
--color=scala-compilation \
/Users/.../implicit-searches-global.flamegraph > compile-all-modules.svg
I got my coloured graph painted as expected: