Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: appengine/findit/crash/stacktrace_parser.py

Issue 2593593003: [Predator] Add Clusterfuzz stacktrace parser. (Closed)
Patch Set: fix nits. Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import math 5 import math
6 6
7 from crash.stacktrace import CallStackBuffer 7 from crash.stacktrace import CallStackBuffer
8 from crash.stacktrace import Stacktrace 8 from crash.stacktrace import Stacktrace
9 9
10 10
11 class StacktraceParser(object): 11 class StacktraceParser(object):
12 12
13 def Parse(self, stacktrace_string, deps, signature=None, top_n_frames=None): 13 def Parse(self, stacktrace_string, deps, signature=None, top_n_frames=None):
14 """Parses stacktrace_string into ``Stacktrace`` instance. 14 """Parses stacktrace_string into ``Stacktrace`` instance.
15 15
16 Args: 16 Args:
17 stacktrace_string (str): Raw string to be parsed. 17 stacktrace_string (str): Raw string to be parsed.
18 deps (dict): Dict mapping repository path to ``Dependency`` instance, used 18 deps (dict): Dict mapping repository path to ``Dependency`` instance, used
19 to resolve dependency of frames. 19 to resolve dependency of frames.
20 signature (str): Signature is used to mark signature callstack, signature 20 signature (str): Signature is used to mark signature callstack, signature
21 callstack is the crash stack that causing the crash. 21 callstack is the crash stack that causing the crash.
22 top_n_frames (int): Number of top frames to be keep in a callstack. 22 top_n_frames (int): Number of top frames to be keep in a callstack.
23 """ 23 """
24 raise NotImplementedError() 24 raise NotImplementedError()
25
26 def _IsStartOfNewCallStack(self, line):
27 """Determines whether a line is the start of a new callstack or not."""
28 raise NotImplementedError()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698