summaryrefslogtreecommitdiff
path: root/tools/tests/test_check_budgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tests/test_check_budgets.py')
-rw-r--r--tools/tests/test_check_budgets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tests/test_check_budgets.py b/tools/tests/test_check_budgets.py
index 2262a0b..28ba710 100644
--- a/tools/tests/test_check_budgets.py
+++ b/tools/tests/test_check_budgets.py
@@ -29,6 +29,8 @@ def test_measure_perf_and_memory() -> None:
assert cb.measure("perf", events) == {"startup_ms": 12.0, "first_frame_wall_ms": 2310.0}
assert cb.measure("mem", events) == {"mem_used_fraction": 100000 / 524288}
assert cb.measure("perf", {}) == {}
+ with_glance = cb.read_events(f"DIAG glance mem_used=16384 mem_total=65536\n{FRAME}")
+ assert cb.measure("mem", with_glance) == {"mem_used_fraction": 100000 / 524288, "glance_mem_used_fraction": 0.25}
def run(tmp_path: Path, kind: str, log_text: str, budgets: Mapping[str, Mapping[str, float]]) -> int: