summaryrefslogtreecommitdiffstats
path: root/tools/linux/dump-static-initializers.py
Commit message (Collapse)AuthorAgeFilesLines
* dump-static-initializers: reference existing bug on protobuffersevan@chromium.org2012-02-091-1/+8
| | | | | | | | | When printing out that some bit of code has a static initializer due to this known bug, reference the bug. Review URL: https://chromiumcodereview.appspot.com/9372037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121327 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers: fix and expand regexevan@chromium.org2012-02-091-8/+30
| | | | | | | | | The regex as written didn't even match the comment above it; add a test and expand the regex to match another format. Review URL: https://chromiumcodereview.appspot.com/9375027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121324 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers: also complain about empty initializersevan@chromium.org2012-02-081-16/+18
| | | | | | | | | | | Even when a static initializer is only two bytes, we still ought to fix it. Keep the two-byte special case so we can include extra hints. Review URL: http://codereview.chromium.org/9362002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120897 0039d316-1c4b-4281-b951-d872f2087c98
* Adds '#'s to the beginning of each output line when running with -dtbreisacher@chromium.org2012-02-071-2/+4
| | | | | | | | | | | This way, if the output format changes in a way that confuses the bot running sizes.py, we can tell the bot to just ignore lines that start with '#'. See http://codereview.chromium.org/9323047/#msg11 BUG=102013 TEST=none Review URL: https://chromiumcodereview.appspot.com/9347013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120726 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers.py: Don't try to use git when not in a git checkout.fischman@chromium.org2012-02-071-0/+8
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9347002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120653 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers.py: Add '-d' flag for listing SI's in an easily ↵tbreisacher@chromium.org2012-02-011-27/+32
| | | | | | | | | | | | "diff-able" way, for use in the 'sizes' script. BUG=none TEST=none Review URL: http://codereview.chromium.org/9169074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120131 0039d316-1c4b-4281-b951-d872f2087c98
* Path-qualify filenames emitted by dump-static-intializers.py, when ↵fischman@chromium.org2012-01-181-5/+54
| | | | | | | | | | | | easy/possible. BUG=none TEST=none Review URL: http://codereview.chromium.org/9227002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118049 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/tools/maruel@chromium.org2011-11-291-1/+1
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers: Add a --size option to just print out the total ↵thestig@chromium.org2011-10-071-22/+40
| | | | | | | | | | static initializers size. BUG=none TEST=none Review URL: http://codereview.chromium.org/8188003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104414 0039d316-1c4b-4281-b951-d872f2087c98
* dump-static-initializers: make more user-friendlyevan@chromium.org2011-09-231-7/+12
| | | | | | | | | - Use optparse so --help works. - Make the code that catches running on a Debug build actually work. Review URL: http://codereview.chromium.org/8015017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102567 0039d316-1c4b-4281-b951-d872f2087c98
* Check in a tool to dump static initializers from a binaryevan@chromium.org2011-09-061-0/+113
BUG=94925 Review URL: http://codereview.chromium.org/7837013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99852 0039d316-1c4b-4281-b951-d872f2087c98