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

Side by Side Diff: tools/deep_memory_profiler/lib/subcommand.py

Issue 754203004: There is a cyclic import in dmprof Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « tools/deep_memory_profiler/lib/dumplist.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/deep_memory_profiler/lib/dumplist.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698