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

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

Issue 2856203004: supersize: Fix name normalization of top-level lambdas (Closed)
Patch Set: rebase Created 3 years, 8 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
Index: tools/binary_size/libsupersize/models.py
diff --git a/tools/binary_size/libsupersize/models.py b/tools/binary_size/libsupersize/models.py
index 22c8c6110742cadf47cdfab9f97f31e1da5ea6c0..18280164bfdf3b1b301216ca66563fce990f513d 100644
--- a/tools/binary_size/libsupersize/models.py
+++ b/tools/binary_size/libsupersize/models.py
@@ -329,6 +329,9 @@ class SymbolGroup(BaseSymbol):
seen_aliases_lists.add(id(s.aliases))
yield s
+ def CountUniqueSymbols(self):
+ return sum(1 for s in self.IterUniqueSymbols())
+
@property
def size(self):
if self._size is None:
« no previous file with comments | « tools/binary_size/libsupersize/function_signature_test.py ('k') | tools/binary_size/libsupersize/testdata/Console.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698