trace: Number calls.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 15:11:30 +0000 (15:11 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:04:05 +0000 (21:04 +0000)
src/gallium/drivers/trace/tr_dump.c
src/gallium/drivers/trace/trace.xsl

index 5fb020538ee703fd39029a7175d8d9d5f2f8204a..97872be784de95ab15ce5fd8c72cc21abcd65c79 100644 (file)
@@ -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();
 }
 
index 9cd621e7ab981d8771f065d6f22008dc074b9b50..7be95e0e75308a0fbab78ed3e88a84a70cd8c36f 100644 (file)
@@ -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>