| OLD | NEW |
| 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 re | 5 import re |
| 6 | 6 |
| 7 from crash.stacktrace import CallStack | 7 from crash.stacktrace import CallStack |
| 8 | 8 |
| 9 | 9 |
| 10 _INLINE_FUNCTION_FILE_PATH_MARKERS = [ | 10 _INLINE_FUNCTION_FILE_PATH_MARKERS = [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 def _IsNonInlineFunctionFrame(frame): | 23 def _IsNonInlineFunctionFrame(frame): |
| 24 for path_marker in _INLINE_FUNCTION_FILE_PATH_MARKERS: | 24 for path_marker in _INLINE_FUNCTION_FILE_PATH_MARKERS: |
| 25 if path_marker in frame.file_path: | 25 if path_marker in frame.file_path: |
| 26 return False | 26 return False |
| 27 | 27 |
| 28 return True | 28 return True |
| 29 | 29 |
| 30 return CallStack(callstack.priority, | 30 return CallStack(callstack.priority, |
| 31 callstack.format_type, | 31 callstack.format_type, |
| 32 callstack.language_type, | 32 callstack.language_type, |
| 33 filter(_IsNonInlineFunctionFrame, callstack)) | 33 filter(_IsNonInlineFunctionFrame, callstack.frames)) |
| OLD | NEW |