summaryrefslogtreecommitdiffstats
path: root/src/gallium/tools/trace/parse.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-06-20 19:40:06 +0100
committerJosé Fonseca <[email protected]>2013-06-21 14:30:20 +0100
commitcc4ad695caa0546c7a9bcb6719f5efaf90db5608 (patch)
treedf373ba9e023d90d5537b9b3089ae20e5e0fdfc3 /src/gallium/tools/trace/parse.py
parenta7bccb33b95699eb5c14b76e782da75e6d8c2738 (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-xsrc/gallium/tools/trace/parse.py4
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):