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

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

Issue 2881563003: supersize: Make Disassemble() work for downloaded .size files (Closed)
Patch Set: self-review 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
Index: tools/binary_size/libsupersize/models.py
diff --git a/tools/binary_size/libsupersize/models.py b/tools/binary_size/libsupersize/models.py
index 31d01e59d942b7b3c2eb3e29802e4b37240b0d15..88716dadf38d98463dade12e8812ddac4fcc8ff7 100644
--- a/tools/binary_size/libsupersize/models.py
+++ b/tools/binary_size/libsupersize/models.py
@@ -42,6 +42,7 @@ METADATA_ELF_FILENAME = 'elf_file_name' # Path relative to output_directory.
METADATA_ELF_MTIME = 'elf_mtime' # int timestamp in utc.
METADATA_ELF_BUILD_ID = 'elf_build_id'
METADATA_GN_ARGS = 'gn_args'
+METADATA_TOOL_PREFIX = 'tool_prefix' # Path relative to SRC_ROOT.
SECTION_TO_SECTION_NAME = {
@@ -456,9 +457,12 @@ class SymbolGroup(BaseSymbol):
filtered_symbols=filtered_and_kept[0],
section_name=self.section_name)
- def WhereBiggerThan(self, min_size):
+ def WhereSizeBiggerThan(self, min_size):
return self.Filter(lambda s: s.size >= min_size)
+ def WherePssBiggerThan(self, min_pss):
+ return self.Filter(lambda s: s.pss >= min_pss)
+
def WhereInSection(self, section):
if len(section) == 1:
ret = self.Filter(lambda s: s.section == section)

Powered by Google App Engine
This is Rietveld 408576698