diff options
author | José Fonseca <[email protected]> | 2009-03-25 15:11:30 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-03-25 21:04:05 +0000 |
commit | 58351b5023c2d87c22e21a27fd238212040dab8b (patch) | |
tree | 81a3e2195f5a1569a1efc3719d0194c863b21ff4 /src/gallium/drivers/trace/tr_dump.c | |
parent | 710bcc8050848766a85420d0425e51008943fc78 (diff) |
trace: Number calls.
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_dump.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c index 5fb020538ee..97872be784d 100644 --- a/src/gallium/drivers/trace/tr_dump.c +++ b/src/gallium/drivers/trace/tr_dump.c @@ -265,8 +265,16 @@ void trace_dump_trace_end(void) void trace_dump_call_begin(const char *klass, const char *method) { + static long unsigned no = 0; + ++no; trace_dump_indent(1); - trace_dump_tag_begin2("call", "class", klass, "method", method); + trace_dump_writes("<call no=\'"); + trace_dump_writef("%lu", no); + trace_dump_writes("\' class =\'"); + trace_dump_escape(klass); + trace_dump_writes("\' method=\'"); + trace_dump_escape(method); + trace_dump_writes("\'>"); trace_dump_newline(); } |