YOCKOW
d10381557b
[NFC] Python Lint: Fix E275(missing whitespace after keyword) issues.
2022-08-21 16:07:07 +09:00
Hamish Knight
605540d195
[process-stats-dir] Fix row indexing
...
Apparently `namedtuple` can't be used with `vars`
anymore.
2022-06-21 19:00:46 +01:00
Hamish Knight
707d17f19a
[process-stats-dir] Switch to buffered output
...
Unbuffered output is unsupported for non-binary
files.
2022-06-21 19:00:45 +01:00
Eric Miotto
cf50b9d57a
[process-stats-dir] open output file as text ( #58755 )
...
Addresses #58754
2022-05-09 09:10:02 -07: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
Saleem Abdulrasool
cfebd57e80
test: adjust style for python linter (NFC)
...
Reorganise some of the imports in `process-stats-dir` to appease the
linter.
2020-06-30 08:28:23 -07: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
Graydon Hoare
71da5ec519
Fix flake8 warning W605 invalid escape sequence.
2018-11-06 11:38:39 -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
05499a4b1a
[process-stats-dir] Sort and renumber catapult trace lines by time.
2018-01-12 16:24:25 -08:00
Graydon Hoare
677b59c9cf
[process-stats-dir] Format times and numbers nicely in --markdown mode.
2017-11-16 00:43:58 -08:00
Graydon Hoare
a47055e339
[process-stats-dir] Sniff module-qualified --select-stats-from-csv-baseline
2017-11-16 00:42:56 -08: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
1cd78105d5
[NamedLazyMemberLoading] Fix flake8 warnings on process-stats-dir.py
2017-11-01 17:35:46 -07:00
Graydon Hoare
56b00b347b
[process-stats-dir] Add --evaluate-delta mode to make tests a bit more robust.
2017-11-01 17:35:46 -07:00
Graydon Hoare
be4b1eaba3
[process-stats-dir] Print diagnostic when --evaluate fails.
2017-10-20 15:38:07 -07:00
Graydon Hoare
6db38031ef
[process-stats-dir] Add --evaluate for evaluating specific stat conditions
2017-10-20 15:38:06 -07:00
Graydon Hoare
0b3e02b66a
[process-stats-dir] Fix overzealous reporting cases from previous change.
2017-10-12 23:24:55 -07:00
Graydon Hoare
3d1b03721b
[process-stats-dir] Improve markdown formatting of comparisons.
2017-10-10 17:02:44 -07:00
Graydon Hoare
f43aa40f2c
[process-stats-dir] Make --select-stats-from-csv-baseline work everywhere.
2017-10-10 13:23:02 -07:00
Graydon Hoare
162aee3cac
[process-stats-dir] Add module-linebreak and pass/fail emoji to markdown output
2017-10-02 11:40:38 -07:00
Graydon Hoare
00ad7a0a12
[process-stats-dir] Add --select-stats-from-csv-baseline
2017-10-02 10:59:16 -07:00
Graydon Hoare
2910623cc4
[process-stats-dir] Treat module-grouped timers as timers too.
2017-09-21 17:37:31 -07:00
Graydon Hoare
b37f36c623
[process-stats-dir] Support --select-stat in csv operations.
2017-09-19 14:39:47 -07:00
Graydon Hoare
98322a38d6
[process-stats-dir] Escape percent in help message.
2017-09-19 14:39:22 -07: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
3d1f7b8ac9
[process-stats-dir] Handle empty metrics condition.
2017-09-14 15:19:19 -07:00
Graydon Hoare
899bda9fea
[process-stats-dir] Add --markdown mode.
2017-09-13 17:43:49 -07:00
Graydon Hoare
c73cbd44ca
[process-stats-dir] Write old/new/delta as integers.
2017-09-13 17:41:59 -07:00
Graydon Hoare
a0b5c0a7df
[process-stats-dir] Add --sort-by-delta-pct and --sort-descending.
2017-09-13 15:56:10 -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
910dd932a2
[stats] Address review comments.
2017-09-08 09:26:59 -07:00
Graydon Hoare
bc09276f7f
[stats] Add --compare-stats-dirs mode to process-stats-dir
2017-09-07 22:02:00 -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
Graydon Hoare
422266ac02
[Stats] Add test for -stats-output-dir and process-stats-dir.py
2017-06-02 23:49:52 -07:00
Graydon Hoare
d05d57a7d5
Merge pull request #10057 from graydon/process-stats-dir-baselines
...
Add CSV "baseline" support to process-stats-dir
2017-06-02 20:23:35 -07:00
Graydon Hoare
e10f483477
[Stats] Mangle a little more information into the file & timer names.
...
This helps disambiguate files that might otherwise be hard to sort through
if multiple runs output stats together in a single directory. The names
don't have to be perfect, just contain sufficient hints (and be parseable)
to differentiate module, arch, opt and output-type variation in jobs.
2017-06-02 18:08:31 -07:00
Graydon Hoare
5718b76ded
[process-stats-dir] Support (re)setting & comparing to CSV baselines.
2017-06-01 17:25:48 -07:00
Graydon Hoare
043918fddc
[process-stats-dir] Fix message capitalization.
2017-06-01 17:24:58 -07:00
Graydon Hoare
16fe4f7b5f
[process-stats-dir] Support LNT output (and automated submission)
2017-05-31 17:30:41 -07:00
Pavol Vaskovic
b4c00e0463
Fixed code style issues reported by python-lint.
...
Fixed E305 expected 2 blank lines after class or function definition
2017-05-31 14:25:04 +02:00
Graydon Hoare
89a21b2204
[process-stats-dir] Divide delta by old rather than new.
2017-05-16 16:58:38 -07:00
Graydon Hoare
e915081fce
[process-stats-dir] Add exit code indicating regressions in comparisons
2017-05-11 14:55:09 -07:00
Graydon Hoare
6206a85dbf
[process-stats-dir] Improve times, zeros, thresholds.
2017-05-11 14:55:09 -07:00
Graydon Hoare
d90df1ceda
[process-stats-dir] Report names at end of line.
2017-05-11 14:55:02 -07:00