diff options
author | José Fonseca <[email protected]> | 2013-06-20 19:40:06 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-06-21 14:30:20 +0100 |
commit | cc4ad695caa0546c7a9bcb6719f5efaf90db5608 (patch) | |
tree | df373ba9e023d90d5537b9b3089ae20e5e0fdfc3 /src/gallium/tools/trace/parse.py | |
parent | a7bccb33b95699eb5c14b76e782da75e6d8c2738 (diff) |
tools/trace: Tool to dump gallium state at any draw call.
Based from the code from the good old python state tracker.
Extremely handy to diagnose regressions in state trackers.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/tools/trace/parse.py')
-rwxr-xr-x | src/gallium/tools/trace/parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/tools/trace/parse.py b/src/gallium/tools/trace/parse.py index d8dce2628ab..6a0d2fedb9d 100755 --- a/src/gallium/tools/trace/parse.py +++ b/src/gallium/tools/trace/parse.py @@ -352,9 +352,9 @@ class TraceParser(XmlParser): class TraceDumper(TraceParser): - def __init__(self, fp): + def __init__(self, fp, outStream = sys.stdout): TraceParser.__init__(self, fp) - self.formatter = format.DefaultFormatter(sys.stdout) + self.formatter = format.DefaultFormatter(outStream) self.pretty_printer = PrettyPrinter(self.formatter) def handle_call(self, call): |