OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 """Dump functions called by static intializers in a Linux Release binary. | 6 """Dump functions called by static intializers in a Linux Release binary. |
7 | 7 |
8 Usage example: | 8 Usage example: |
9 tools/linux/dump-static-intializers.py out/Release/chrome | 9 tools/linux/dump-static-intializers.py out/Release/chrome |
10 | 10 |
11 A brief overview of static initialization: | 11 A brief overview of static initialization: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 print ' ', ref | 127 print ' ', ref |
128 print | 128 print |
129 | 129 |
130 if opts.calculate_instances: | 130 if opts.calculate_instances: |
131 print static_initializers_count | 131 print static_initializers_count |
132 return 0 | 132 return 0 |
133 | 133 |
134 | 134 |
135 if '__main__' == __name__: | 135 if '__main__' == __name__: |
136 sys.exit(main()) | 136 sys.exit(main()) |
OLD | NEW |