From e49b536d289cf0577bc85b0288626439c9daf4a7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 28 Aug 2018 00:36:10 +0200 Subject: add parser for chattmallocs output file --- chattyparser.py | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 chattyparser.py diff --git a/chattyparser.py b/chattyparser.py new file mode 100644 index 0000000..02ac6f6 --- /dev/null +++ b/chattyparser.py @@ -0,0 +1,88 @@ +import re + +rss_re = re.compile("^VmRSS:\s+(\d+) kB$") + +ptr = "(?:0x)?(?P(?:\w+)|(?:\(nil\)))" +size = "(?P\d+)" +time = "(?P