| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2017 The Chromium Authors. All rights reserved. | 2 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Collect, archive, and analyze Chrome's binary size.""" | 6 """Collect, archive, and analyze Chrome's binary size.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import atexit | 9 import atexit |
| 10 import collections | 10 import collections |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 # Running with python: 6s. Running with pypy: 3s | 93 # Running with python: 6s. Running with pypy: 3s |
| 94 logging.warning('This script runs more than 2x faster if you install pypy.') | 94 logging.warning('This script runs more than 2x faster if you install pypy.') |
| 95 | 95 |
| 96 if logging.getLogger().isEnabledFor(logging.DEBUG): | 96 if logging.getLogger().isEnabledFor(logging.DEBUG): |
| 97 atexit.register(_LogPeakRamUsage) | 97 atexit.register(_LogPeakRamUsage) |
| 98 | 98 |
| 99 args.func(args, parser) | 99 args.func(args, parser) |
| 100 | 100 |
| 101 | 101 |
| 102 if __name__ == '__main__': | 102 if __name__ == '__main__': |
| 103 sys.exit(main()) | 103 main() |
| OLD | NEW |