Mesa (gallium-0.1): trace: Number calls.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed May 20 15:33:05 UTC 2009
Module: Mesa
Branch: gallium-0.1
Commit: 0aceef3e7786e97a2a913a9a5d479503156c8826
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0aceef3e7786e97a2a913a9a5d479503156c8826
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Mar 25 15:11:30 2009 +0000
trace: Number calls.
---
src/gallium/drivers/trace/tr_dump.c | 10 +++++++++-
src/gallium/drivers/trace/trace.xsl | 3 +++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index a0ead0d..724c894 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -262,8 +262,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();
}
diff --git a/src/gallium/drivers/trace/trace.xsl b/src/gallium/drivers/trace/trace.xsl
index 9cd621e..7be95e0 100644
--- a/src/gallium/drivers/trace/trace.xsl
+++ b/src/gallium/drivers/trace/trace.xsl
@@ -68,6 +68,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xsl:template match="call">
<li>
+ <xsl:attribute name="value">
+ <xsl:apply-templates select="@no"/>
+ </xsl:attribute>
<span class="fun">
<xsl:value-of select="@class"/>
<xsl:text>::</xsl:text>
More information about the mesa-commit
mailing list