diff options
Diffstat (limited to 'scripts/incremental_build/perf_metrics.py')
-rwxr-xr-x | scripts/incremental_build/perf_metrics.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/incremental_build/perf_metrics.py b/scripts/incremental_build/perf_metrics.py index 0ee4b253..de1079f6 100755 --- a/scripts/incremental_build/perf_metrics.py +++ b/scripts/incremental_build/perf_metrics.py @@ -81,7 +81,7 @@ def archive_run(d: Path, build_info: dict[str, any]): json.dump(build_info, f, indent=True) -def read_pbs(d: Path) -> dict[str, datetime.timedelta]: +def read_pbs(d: Path) -> dict[str, str]: """ Reads metrics data from pb files and archives the file by copying them under the log_dir. @@ -110,8 +110,8 @@ def read_pbs(d: Path) -> dict[str, datetime.timedelta]: def normalize(desc: str) -> str: return re.sub(r'^(?:soong_build|mixed_build)', '*', desc) - return {f'{m.name}/{normalize(m.description)}': str(m.real_time) for m in - events} + return {f'{m.name}/{normalize(m.description)}': util.hhmmss(m.real_time) for m + in events} def _read_pb( |