Commit 291890fe authored by timurrrr@chromium.org's avatar timurrrr@chromium.org

Simplify drmemory_analyze and remove some unneeded stuff

TBR=bruening
Review URL: http://codereview.chromium.org/8633013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111140 0039d316-1c4b-4281-b951-d872f2087c98
parent bbc51c91
...@@ -42,7 +42,6 @@ class DrMemoryAnalyze: ...@@ -42,7 +42,6 @@ class DrMemoryAnalyze:
def ReadLine(self): def ReadLine(self):
self.line_ = self.cur_fd_.readline() self.line_ = self.cur_fd_.readline()
self.stack_trace_line_ = None
def ReadSection(self): def ReadSection(self):
result = [self.line_] result = [self.line_]
...@@ -58,21 +57,12 @@ class DrMemoryAnalyze: ...@@ -58,21 +57,12 @@ class DrMemoryAnalyze:
while True: while True:
self.ReadLine() self.ReadLine()
if (self.line_ == ''): break if (self.line_ == ''): break
if re.search("FINAL SUMMARY:", self.line_):
# No more reports since this point.
break
tmp = []
match = re.search("^Error #[0-9]+: (.*)", self.line_) match = re.search("^Error #[0-9]+: (.*)", self.line_)
if match: if match:
self.line_ = match.groups()[0].strip() + "\n" self.line_ = match.groups()[0].strip() + "\n"
tmp.extend(self.ReadSection()) tmp = self.ReadSection()
self.reports.append(tmp) self.reports.append(tmp)
elif self.line_.startswith("ASSERT FAILURE"):
self.reports.append(self.line_.strip())
while True:
self.ReadLine();
if (self.line_ == ''): break
if re.search("SUPPRESSIONS USED:", self.line_): if re.search("SUPPRESSIONS USED:", self.line_):
self.ReadLine() self.ReadLine()
...@@ -82,11 +72,6 @@ class DrMemoryAnalyze: ...@@ -82,11 +72,6 @@ class DrMemoryAnalyze:
line).groups() line).groups()
self.used_suppressions.append("%7s %s" % (count, name)) self.used_suppressions.append("%7s %s" % (count, name))
self.ReadLine() self.ReadLine()
break
while True:
self.ReadLine();
if (self.line_ == ''): break
if self.line_.startswith("ASSERT FAILURE"): if self.line_.startswith("ASSERT FAILURE"):
self.reports.append(self.line_.strip()) self.reports.append(self.line_.strip())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment