Daniel Duan
3dfc40898c
[NFC] Remove Python 2 imports from __future__ ( #42086 )
...
The `__future__` we relied on is now, where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html ):
* absolute_import
* print_function
* unicode_literals
* division
These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Evan Wilde
6956b7c5c9
Replace /usr/bin/python with /usr/env/python
...
/usr/bin/python doesn't exist on ubuntu 20.04 causing tests to fail.
I've updated the shebangs everywhere to use `/usr/bin/env python`
instead.
2021-09-28 10:05:05 -07:00
Harlan Haskins
31f8859bb0
[utils] Add wall time to rusage
...
This just add a --wall-time flag to rusage.py, which will print the wall
time.
2019-01-18 10:02:03 -08:00
Graydon Hoare
09b47533ea
[rusage] Avoid append file mode, does not work on stdout.
2017-05-25 09:40:12 -07:00
Graydon Hoare
9c0142c22a
[utils] Add a CSV-output mode to rusage script.
2017-05-12 18:46:20 -07:00
practicalswift
0ef2993419
[gardening] Use sys.exit(...) instead of exit(...)
2017-02-24 09:38:00 +01:00
practicalswift
9dcafda754
[gardening] Use sys.exit(...) instead of exit(...)
2017-02-21 14:20:34 +01:00
Hugh Bellamy
9028f8cd17
Fix pylint errors in rusage.py for incorrect ordering of imports
2017-02-17 15:37:37 +07:00
Hugh Bellamy
fa3543d3c5
Fix some pylint errors for double whitespace after class/function
2017-02-17 15:37:19 +07:00
Graydon Hoare
934e6fa20d
[Compile perf] Add utils/rusage.py for crude getrusage()-based measurement.
2017-02-16 15:00:12 -08:00