diff options
author | Matti Hamalainen <ccr@tnsp.org> | 2021-04-20 15:15:59 +0300 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-05-07 15:48:03 +0000 |
commit | 0834a42773fa234f00b87151473a7b086c31e066 (patch) | |
tree | 84727768a3640f45de539a3ac9f1c5f9aaea0786 /src/gallium/tools/trace/model.py | |
parent | a6765412fe1609ab3cc3829e0f9b13d6f63aaceb (diff) |
gallium/tools: improve option handling in dump_state.py
Previously we inherited some options from parse.py, but
that made no sense for some of the options that are not
needed for dump_state.py (such as --plain, as we output
only JSON format text.)
So, remove the inherit and implement filename argument
here independantly.
Signed-off-by: Matti Hamalainen <ccr@tnsp.org>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10648>
Diffstat (limited to 'src/gallium/tools/trace/model.py')
-rwxr-xr-x | src/gallium/tools/trace/model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/tools/trace/model.py b/src/gallium/tools/trace/model.py index 913a4ef13d2..1cd3c18d987 100755 --- a/src/gallium/tools/trace/model.py +++ b/src/gallium/tools/trace/model.py @@ -44,7 +44,7 @@ class Node: def __str__(self): stream = StringIO() - formatter = format.DefaultFormatter(stream) + formatter = format.Formatter(stream) pretty_printer = PrettyPrinter(formatter) self.visit(pretty_printer) return stream.getvalue() @@ -206,7 +206,7 @@ class PrettyPrinter: def visit_pointer(self, node): self.formatter.address(node.address) - + def visit_call(self, node): self.formatter.text('%s ' % node.no) if node.klass is not None: |