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

Unified Diff: appengine/findit/crash/changelist_classifier.py

Issue 2562623004: Making CallStack immutable, so it can be hashable (Closed)
Patch Set: Addressing nits Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/callstack_filters.py ('k') | appengine/findit/crash/chromecrash_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/changelist_classifier.py
diff --git a/appengine/findit/crash/changelist_classifier.py b/appengine/findit/crash/changelist_classifier.py
index eb2abba2df226f7cd2c1ee16aadaa03c0228e2a7..47bf9062eba1a9c7ee6a76c6c8c2fdfd31328a51 100644
--- a/appengine/findit/crash/changelist_classifier.py
+++ b/appengine/findit/crash/changelist_classifier.py
@@ -58,12 +58,8 @@ class ChangelistClassifier(namedtuple('ChangelistClassifier',
last_good_version, first_bad_version)
# Restrict analysis to just the top n frames in each callstack.
- # TODO(wrengr): move this to be a Stacktrace method?
stacktrace = Stacktrace([
- CallStack(stack.priority,
- format_type=stack.format_type,
- language_type=stack.language_type,
- frame_list=stack[:self.top_n_frames])
+ stack.SliceFrames(None, self.top_n_frames)
for stack in report.stacktrace])
# We are only interested in the deps in crash stack (the callstack that
« no previous file with comments | « appengine/findit/crash/callstack_filters.py ('k') | appengine/findit/crash/chromecrash_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698