OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 """Contains a set of Chrome-specific size queries.""" | 5 """Contains a set of Chrome-specific size queries.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import models | 8 import models |
9 | 9 |
10 | 10 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 return _CategorizeGenerated(self._SymbolsArg(symbols)) | 137 return _CategorizeGenerated(self._SymbolsArg(symbols)) |
138 | 138 |
139 def CategorizeByChromeComponent(self, symbols=None): | 139 def CategorizeByChromeComponent(self, symbols=None): |
140 """Groups symbols by component using predefined queries.""" | 140 """Groups symbols by component using predefined queries.""" |
141 return _CategorizeByChromeComponent(self._SymbolsArg(symbols)) | 141 return _CategorizeByChromeComponent(self._SymbolsArg(symbols)) |
142 | 142 |
143 def TemplatesByName(self, symbols=None, depth=0): | 143 def TemplatesByName(self, symbols=None, depth=0): |
144 """Lists C++ templates grouped by name.""" | 144 """Lists C++ templates grouped by name.""" |
145 symbols = self._SymbolsArg(symbols) | 145 symbols = self._SymbolsArg(symbols) |
146 # TODO(agrieve): Might be nice to recursively GroupedByName() on these. | 146 # TODO(agrieve): Might be nice to recursively GroupedByName() on these. |
147 return symbols.WhereIsTemplate().GroupedByName(depth).Clustered().Sorted() | 147 return symbols.WhereIsTemplate().GroupedByName(depth).Sorted() |
OLD | NEW |