From b5d85cef9db8fcb72fe152d37ad098363141b008 Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Thu, 29 Jun 2017 14:28:07 -0700 Subject: Revert "trappy: Speed up trappy parsing by 20% by skipping regex sub" This reverts commit c9243e261fb37be1b1149ae6d111e18745b75959. --- trappy/ftrace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trappy/ftrace.py b/trappy/ftrace.py index 07e01c7..4bd0ae0 100644 --- a/trappy/ftrace.py +++ b/trappy/ftrace.py @@ -215,8 +215,7 @@ subclassed by FTrace (for parsing FTrace coming from trace-cmd) and SysTrace.""" return # Remove empty arrays from the trace - if "={}" in data_str: - data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str) + data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str) trace_class.append_data(timestamp, comm, pid, cpu, self.lines, data_str) self.lines += 1 -- cgit v1.2.3