Skip to content

Commit 90b3ef1

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 <[email protected]>
1 parent cdd5e38 commit 90b3ef1

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
@@ -143,9 +143,11 @@ def test_boottime(
143143
unit="Microseconds",
144144
)
145145

146-
timestamps = find_events(vm.log_data)
147-
build_time = timestamps["build microvm for boot"]["duration"]
146+
events = find_events(vm.log_data)
147+
build_time = events["build microvm for boot"]["duration"]
148148
metrics.put_metric("build_time", build_time.microseconds, unit="Microseconds")
149+
resume_time = events["boot microvm"]["duration"]
150+
metrics.put_metric("resume_time", resume_time.microseconds, unit="Microseconds")
149151

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

0 commit comments

Comments
 (0)