OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 """Common utilities for tools that deal with binary size information. | 5 """Common utilities for tools that deal with binary size information. |
6 | 6 |
7 Copied from chromium/src/build/android/pylib/symbols/binary_size_tools.py. | 7 Copied from chromium/src/build/android/pylib/symbols/binary_size_tools.py. |
8 """ | 8 """ |
9 | 9 |
10 import logging | 10 import logging |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if sym_type in ('U', 'w'): | 58 if sym_type in ('U', 'w'): |
59 continue # external or weak symbol | 59 continue # external or weak symbol |
60 match = addr_only_re.match(line) | 60 match = addr_only_re.match(line) |
61 if match: | 61 if match: |
62 continue # Nothing to do. | 62 continue # Nothing to do. |
63 | 63 |
64 | 64 |
65 # If we reach this part of the loop, there was something in the | 65 # If we reach this part of the loop, there was something in the |
66 # line that we didn't expect or recognize. | 66 # line that we didn't expect or recognize. |
67 logging.warning('nm output parser failed to parse: %s', repr(line)) | 67 logging.warning('nm output parser failed to parse: %s', repr(line)) |
OLD | NEW |