Lines Matching +full:output +full:- +full:disable
1 # flamegraph.py - create flame graphs from perf samples
2 # SPDX-License-Identifier: GPL-2.0
6 # perf record -a -g -F 99 sleep 60
11 # perf script flamegraph -a -F 99 sleep 60
15 # Works in tandem with d3-flame-graph by Martin Spier <mspier@netflix.com>
17 # pylint: disable=missing-module-docstring
18 # pylint: disable=missing-class-docstring
19 # pylint: disable=missing-function-docstring
29 # pylint: disable=too-few-public-methods
56 "the js-d3-flame-graph (RPM) or libjs-d3-flame-graph (deb) "
58 "(--template PATH) or another output format "
59 "(--format FORMAT).".format(self.args.template),
66 when kernel-debuginfo is installed,
87 # for user-space processes; let's use pid for kernel or user-space distinction
108 if self.args.input == "-":
114 output = subprocess.check_output(["perf", "report", "--header-only"])
115 return output.decode("utf-8")
116 except Exception as err: # pylint: disable=broad-except
132 with io.open(self.args.template, encoding="utf-8") as template:
141 output_fn = self.args.output or "flamegraph.html"
144 output_fn = self.args.output or "stacks.json"
146 if output_fn == "-":
147 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
152 with io.open(output_fn, "w", encoding="utf-8") as out:
155 print("Error writing output file: {}".format(err), file=sys.stderr)
161 parser.add_argument("-f", "--format",
163 help="output file format")
164 parser.add_argument("-o", "--output",
165 help="output file name")
166 parser.add_argument("--template",
167 default="/usr/share/d3-flame-graph/d3-flamegraph-base.html",
169 parser.add_argument("--colorscheme",
170 default="blue-green",
172 choices=["blue-green", "orange"])
173 parser.add_argument("-i", "--input",