[profiler] primary memory tracer

This commit is contained in:
Jie Zhu
2022-03-04 09:35:23 +08:00
committed by Frank Lee
parent dfc3fafe89
commit d344689274
4 changed files with 93 additions and 19 deletions

View File

@@ -22,6 +22,7 @@ def test_load_config():
@pytest.mark.cpu
def test_load_ophooks():
dict = {'type': 'MemTracerOpHook', 'niter': 2}
dict = {'type': 'MemTracerOpHook', 'warmup': 10, 'refreshrate': 20}
ophook = build_ophooks(dict)
assert ophook.niter() == 2
assert ophook.refreshrate == 20
assert ophook.warmup == 10