Author: Richard Plangger <planri...@gmail.com>
Branch: vmprof-native
Changeset: r90022:f6addbdf4889
Date: 2017-02-09 12:28 +0100
http://bitbucket.org/pypy/pypy/changeset/f6addbdf4889/

Log:    handle all vmprof TAGS in the test that decodes the logfile

diff --git a/pypy/module/_vmprof/test/test__vmprof.py 
b/pypy/module/_vmprof/test/test__vmprof.py
--- a/pypy/module/_vmprof/test/test__vmprof.py
+++ b/pypy/module/_vmprof/test/test__vmprof.py
@@ -43,7 +43,16 @@
                     count += 1
                     i += 2 * WORD + size
                 elif s[i] == '\x06':
-                    i += 8+8+8
+                    print(s[i:i+24])
+                    i += 1+8+8+8
+                elif s[i] == '\x07':
+                    i += 1
+                    # skip string
+                    size, = struct.unpack("l", s[i:i + WORD])
+                    i += WORD+size
+                    # skip string
+                    size, = struct.unpack("l", s[i:i + WORD])
+                    i += WORD+size
                 else:
                     raise AssertionError(ord(s[i]))
             return count
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to