Support comparing two sets of pystats (GH-98816)

This adds support for comparing pystats collected from two different builds.

- The `--json-output` can be used to load in a set of raw stats and output a
  JSON file.
- Two of these JSON files can be provided on the next run, and then comparative
  results between the two are output.
This commit is contained in:
Michael Droettboom 2022-11-04 06:15:54 -04:00 committed by GitHub
parent 044bcc1771
commit 2844aa6a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 365 additions and 122 deletions

View file

@ -131,7 +131,8 @@ General Options
Turn on internal statistics gathering.
The statistics will be dumped to a arbitrary (probably unique) file in
``/tmp/py_stats/``, or ``C:\temp\py_stats\`` on Windows.
``/tmp/py_stats/``, or ``C:\temp\py_stats\`` on Windows. If that directory
does not exist, results will be printed on stdout.
Use ``Tools/scripts/summarize_stats.py`` to read the stats.