| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 logging | 5 import logging |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 from lib.bucket import BucketSet | 10 from lib.bucket import BucketSet |
| 11 from lib.dump import Dump, DumpList | 11 from lib.dump import Dump |
| 12 from lib.dumplist import DumpList |
| 12 from lib.symbol import SymbolDataSources, SymbolMappingCache, SymbolFinder | 13 from lib.symbol import SymbolDataSources, SymbolMappingCache, SymbolFinder |
| 13 from lib.symbol import procfs | 14 from lib.symbol import procfs |
| 14 from lib.symbol import FUNCTION_SYMBOLS, SOURCEFILE_SYMBOLS, TYPEINFO_SYMBOLS | 15 from lib.symbol import FUNCTION_SYMBOLS, SOURCEFILE_SYMBOLS, TYPEINFO_SYMBOLS |
| 15 | 16 |
| 16 | 17 |
| 17 LOGGER = logging.getLogger('dmprof') | 18 LOGGER = logging.getLogger('dmprof') |
| 18 | 19 |
| 19 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 20 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 20 CHROME_SRC_PATH = os.path.join(BASE_PATH, os.pardir, os.pardir) | 21 CHROME_SRC_PATH = os.path.join(BASE_PATH, os.pardir, os.pardir) |
| 21 | 22 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 self._parser.error('needs %d argument(s).\n' % required) | 148 self._parser.error('needs %d argument(s).\n' % required) |
| 148 return None | 149 return None |
| 149 return (options, args) | 150 return (options, args) |
| 150 | 151 |
| 151 @staticmethod | 152 @staticmethod |
| 152 def _parse_policy_list(options_policy): | 153 def _parse_policy_list(options_policy): |
| 153 if options_policy: | 154 if options_policy: |
| 154 return options_policy.split(',') | 155 return options_policy.split(',') |
| 155 else: | 156 else: |
| 156 return None | 157 return None |
| OLD | NEW |