We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7851443 + d5f3513 commit bfa6545Copy full SHA for bfa6545
tests/integration_tests/performance/test_snapshot.py
@@ -279,9 +279,15 @@ def test_snapshot_create_latency(
279
}
280
)
281
282
+ match snapshot_type:
283
+ case SnapshotType.FULL:
284
+ metric = "full_create_snapshot"
285
+ case SnapshotType.DIFF:
286
+ metric = "diff_create_snapshot"
287
+
288
for _ in range(ITERATIONS):
289
vm.make_snapshot(snapshot_type)
290
fc_metrics = vm.flush_metrics()
291
- value = fc_metrics["latencies_us"]["full_create_snapshot"] / USEC_IN_MSEC
292
+ value = fc_metrics["latencies_us"][metric] / USEC_IN_MSEC
293
metrics.put_metric("latency", value, "Milliseconds")
0 commit comments