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

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

Issue 1950123003: [Findit] Fetch DEPS from buildspec/ instead of trunk for chrome official builds. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Update doc string. Created 4 years, 7 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
« no previous file with comments | « appengine/findit/common/test/deps_parser_test.py ('k') | appengine/findit/crash/fracas.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import re
6
7
8 def FilterFramesBeforeSignature(callstack, signature):
9 """Filter all the stack frames before the signature frame.
10
11 Note: The callstack is filtered in place.
12 """
13 if not signature:
14 return
15
16 signature_frame_index = 0
17 # Filter out the types of signature, for example [Out of Memory].
18 signature = re.sub('[[][^]]*[]]\s*', '', signature)
19
20 for index, frame in enumerate(callstack):
21 if signature in frame.function:
22 signature_frame_index = index
23
24 callstack[:] = callstack[signature_frame_index:]
OLDNEW
« no previous file with comments | « appengine/findit/common/test/deps_parser_test.py ('k') | appengine/findit/crash/fracas.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698