aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-27 11:04:33 -0700
committerSeongJae Park <sj@kernel.org>2024-04-27 11:04:33 -0700
commit29160312183cfa7306b2bba519f6f756dccfe56d (patch)
treedff6fddf067c9e11cdd5d27874ede751ee02c0ae
parenta778dfb846453555c535da4b6df2534e2bd9064b (diff)
downloaddamo-29160312183cfa7306b2bba519f6f756dccfe56d.tar.gz
_damo_records: Record memory footprint for paddr case
Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--_damo_records.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/_damo_records.py b/_damo_records.py
index b850c22b..c77b3955 100644
--- a/_damo_records.py
+++ b/_damo_records.py
@@ -781,7 +781,11 @@ def start_recording(handle):
record_mem_footprint(handle.kdamonds,
handle.mem_footprint_snapshots)
time.sleep(1)
- _damon.wait_kdamonds_turned_off()
+ while _damon.any_kdamond_running():
+ if handle.mem_footprint_snapshots is not None:
+ record_mem_footprint(handle.kdamonds,
+ handle.mem_footprint_snapshots)
+ time.sleep(1)
def finish_recording(handle):
try: