Update CHANGES
Also add some test code for heapy-based profiling
diff --git a/z.py b/z.py
index d881240..33cbf4d 100644
--- a/z.py
+++ b/z.py
@@ -75,6 +75,17 @@
self.current_parent = oldparent
+def heapyprofile():
+ from guppy import hpy
+ import gc
+
+ hp = hpy()
+ ast = parse_file('/tmp/197.c')
+ gc.collect()
+ h = hp.heap()
+ print h
+
+
def memprofile():
import resource
import tracemalloc
@@ -98,7 +109,8 @@
}
'''
- memprofile()
+ #memprofile()
+ heapyprofile()
#parser = CParser()
#ast = parser.parse(source_code, filename='zz')