Commit Graph

20 Commits

Author SHA1 Message Date
YOCKOW
d10381557b [NFC] Python Lint: Fix E275(missing whitespace after keyword) issues. 2022-08-21 16:07:07 +09:00
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
Alex Hoppen
92073c671e [Stats] Fix a second/nanoseconds bug in process-stats-dir
Times are expected to be represented in nanoseconds in process-stats-dir,
but times with the 'swift.time.' prefix (e.g. times for specific
requests) were not converted.

It appears the reasons that this hasn’t been caught so far, is that
these times are not shown in Swift-CI's please test compiler performance
report.
2021-01-22 10:25:22 +01:00
Saleem Abdulrasool
cb0a0642ed tests: make jobstats and process-stats-dir python3 compatible
This makes the two utilities Python 2 and Python 3 compatible.  This
repairs the NameLookup tests with Python 3.
2020-06-30 08:28:23 -07:00
Saleem Abdulrasool
bc8aa4b4e9 utils: adjust to support long paths on windows
Windows restricts paths to 251 characters.  Using unicode paths will
allow us to go down the `_wfopen` path which permits the use of the NT
path to actually use long paths.
2019-02-04 08:36:49 -08:00
Graydon Hoare
71da5ec519 Fix flake8 warning W605 invalid escape sequence. 2018-11-06 11:38:39 -08:00
Graydon Hoare
ea2c1db5b0 Fix flake8 warning E722: use of bare except. 2018-11-05 21:01:33 -08:00
Graydon Hoare
93d4cca3cf [Stats] Teach process-stats-dir.py to render organized sets of flamegraphs 2018-09-06 11:39:38 -07:00
Graydon Hoare
3bcc137580 [process-stats-dir] Support --divide-by for averaging across runs. 2017-11-16 00:42:55 -08:00
Graydon Hoare
5e29f02e33 [process-stats-dir] Support --merge-timers to sum across modules. 2017-11-16 00:42:55 -08:00
Graydon Hoare
11858e0918 [process-stats-dir] Add --merge-by=(min|max|sum) for replicated runs. 2017-09-15 14:25:15 -07:00
Graydon Hoare
04af20bb75 [process-stats-dir] Use less tedious strategy for passing args to jobstats. 2017-09-14 15:20:40 -07:00
Graydon Hoare
490f5776e0 [jobstats] Listify a generator before sorting it. 2017-09-14 15:20:07 -07:00
Graydon Hoare
5c7f5979ad [process-stats-dir] Add --exclude-timers option. 2017-09-13 14:59:08 -07:00
Graydon Hoare
c42b3b6bdb [process-stats-dir] Add --select-stat support. 2017-09-13 12:40:14 -07:00
Graydon Hoare
c1d1b1e16e [stats] Accept stats files with no output (eg. from -typecheck) 2017-09-12 22:36:12 -07:00
Graydon Hoare
910dd932a2 [stats] Address review comments. 2017-09-08 09:26:59 -07:00
Graydon Hoare
386002544e [stats] Add --select-module, --group-by-module to process-stats-dir 2017-09-07 22:02:00 -07:00
Graydon Hoare
93a832de7d [stats] Move jobstats support code to its own module. 2017-09-01 16:26:17 -07:00