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

Side by Side Diff: tools/binary_size/libsupersize/ninja_parser.py

Issue 2813963002: //tools/binary_size: Consolidate most tools into "supersize" command (Closed)
Patch Set: Fix readme formatting. Make archive's --outoput-file a positional arg 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 unified diff | Download patch
« no previous file with comments | « tools/binary_size/libsupersize/models.py ('k') | tools/binary_size/libsupersize/paths.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 """Extract source file information from .ninja files.""" 4 """Extract source file information from .ninja files."""
5 5
6 import logging 6 import logging
7 import os 7 import os
8 import re 8 import re
9 9
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return None 80 return None
81 obj_path = by_basename.get(obj_name) 81 obj_path = by_basename.get(obj_name)
82 if not obj_path: 82 if not obj_path:
83 # Found the library, but it doesn't list the .o file. 83 # Found the library, but it doesn't list the .o file.
84 logging.warning('no obj basename for %s', path) 84 logging.warning('no obj basename for %s', path)
85 return None 85 return None
86 return self._Lookup(obj_path) 86 return self._Lookup(obj_path)
87 87
88 def GetParsedFileCount(self): 88 def GetParsedFileCount(self):
89 return len(self._seen_ninja_files) 89 return len(self._seen_ninja_files)
OLDNEW
« no previous file with comments | « tools/binary_size/libsupersize/models.py ('k') | tools/binary_size/libsupersize/paths.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698