Skip to content

Commit 9b806cd

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 a0ed16d commit 9b806cd

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
@@ -133,9 +133,11 @@ def test_boottime(
133133
unit="Microseconds",
134134
)
135135

136-
timestamps = find_events(vm.log_data)
137-
build_time = timestamps["build microvm for boot"]["duration"]
136+
events = find_events(vm.log_data)
137+
build_time = events["build microvm for boot"]["duration"]
138138
metrics.put_metric("build_time", build_time.microseconds, unit="Microseconds")
139+
resume_time = events["boot microvm"]["duration"]
140+
metrics.put_metric("resume_time", resume_time.microseconds, unit="Microseconds")
139141

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

0 commit comments

Comments
 (0)