[sgen] Fix gcpauseviz.
authorMark Probst <mark.probst@gmail.com>
Mon, 6 Jun 2016 23:17:58 +0000 (16:17 -0700)
committerMark Probst <mark.probst@gmail.com>
Mon, 6 Jun 2016 23:36:38 +0000 (16:36 -0700)
It didn't detect starts of concurrent collections anymore because of how
the binary protocol outputs it.

tools/sgen/gcpausevis.py

index 52f0ab26ee3557c0b070fe2456c780d454bb5ebb..1a1b42005ec2ba22a98ab71e716f39cb19814cc6 100755 (executable)
@@ -129,7 +129,7 @@ class ConcurrentMajorGCEventGroup(MajorGCEventGroup):
 def parse_next_major_gc(data, i):
     assert i >= 0
     # Find start or full event.
-    while i < len(data) and data[i].gc_type not in ['start', 'full']:
+    while i < len(data) and data[i].gc_type not in ['start', 'full', 'nursery+update']:
         i += 1
     if i == len(data):
         return None