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

Side by Side Diff: tools/linux/dump-static-initializers.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « tools/licenses.py ('k') | tools/net/netlog.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 #!/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
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())
OLDNEW
« no previous file with comments | « tools/licenses.py ('k') | tools/net/netlog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698