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

Unified Diff: tools/binary_size/libsupersize/canned_queries.py

Issue 2870743003: supersize: Add symbol.template_name, and strip <>s from symbol.name (Closed)
Patch Set: review comments Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/binary_size/libsupersize/archive.py ('k') | tools/binary_size/libsupersize/cluster_symbols.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/binary_size/libsupersize/canned_queries.py
diff --git a/tools/binary_size/libsupersize/canned_queries.py b/tools/binary_size/libsupersize/canned_queries.py
index 84a0612f08a18c1de7999c9889c9ff980e819f05..0b8a23183c44e4e1272e58f0b0ab9800263f482e 100644
--- a/tools/binary_size/libsupersize/canned_queries.py
+++ b/tools/binary_size/libsupersize/canned_queries.py
@@ -139,3 +139,9 @@ class CannedQueries(object):
def CategorizeByChromeComponent(self, symbols=None):
"""Groups symbols by component using predefined queries."""
return _CategorizeByChromeComponent(self._SymbolsArg(symbols))
+
+ def TemplatesByName(self, symbols=None, depth=0):
+ """Lists C++ templates grouped by name."""
+ symbols = self._SymbolsArg(symbols)
+ # TODO(agrieve): Might be nice to recursively GroupedByName() on these.
+ return symbols.WhereIsTemplate().GroupedByName(depth).Clustered().Sorted()
« no previous file with comments | « tools/binary_size/libsupersize/archive.py ('k') | tools/binary_size/libsupersize/cluster_symbols.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698