By default, a self-contained interactive HTML file is generated using the built-in flamegraph generator. The file uses an HTML5 Canvas for rendering and supports zooming (click a frame), search (regex), and per-module coloring — all without any external dependencies.
The -svg flag selects the legacy SVG output produced by the external flamegraph.pl tool. When using this mode the flamegraph package must be installed on the host and flamegraph.pl must be on the PATH. See http://www.brendangregg.com/flamegraphs.html.
The -open-browser flag will attempt to open the generated file on the default webbrowser on the system.
The -discard-module flag only includes the function names in the profile, causing shorter identifiers in the graph.
The -modules-only flag only lists the modules and tries to collapse intra-module calls, providing an overview of the profile on module level and how the modules are called.
The output file is optional and specified with the output-filename argument. If omitted, a temporary file will be created.
The thread-group argument allow filtering on threads which have a certain name.