Skip to content

Commit d98419d

Browse files
committed
feat(tests): add resume metric to boot time tests
Since we already collect this delta, put it into metrics as well. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent 628530c commit d98419d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_tests/performance/test_boottime.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ def test_boottime(
150150
unit="Microseconds",
151151
)
152152

153-
timestamps = find_events(vm.log_data)
154-
build_time = timestamps["build microvm for boot"]["duration"]
153+
events = find_events(vm.log_data)
154+
build_time = events["build microvm for boot"]["duration"]
155155
metrics.put_metric("build_time", build_time.microseconds, unit="Microseconds")
156+
resume_time = events["boot microvm"]["duration"]
157+
metrics.put_metric("resume_time", resume_time.microseconds, unit="Microseconds")
156158

157159
kernel, userspace, total = get_systemd_analyze_times(vm)
158160
metrics.put_metric("systemd_kernel", kernel, unit="Milliseconds")

0 commit comments

Comments
 (0)