diff options
author | SeongJae Park <sj@kernel.org> | 2024-04-27 11:39:30 -0700 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2024-04-27 11:39:30 -0700 |
commit | d9eb534ced1c7f466f5e682005ff6c093a93679b (patch) | |
tree | c16f2823c65af8224a927d4f110a5b5863547770 | |
parent | ed309e30a56202e20333114b58df0a32f41c532e (diff) | |
download | damo-d9eb534ced1c7f466f5e682005ff6c093a93679b.tar.gz |
_damo_records: Rename poll_add_mem_footprint to record_mem_footprint
Memory footprint recording is no more coupled with polling. Rename the
parameter.
Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r-- | _damo_records.py | 4 | ||||
-rw-r--r-- | damo_record.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/_damo_records.py b/_damo_records.py index c2412f55..8f5e301d 100644 --- a/_damo_records.py +++ b/_damo_records.py @@ -752,7 +752,7 @@ class RecordingHandle: def __init__(self, tracepoint, file_path, file_format, file_permission, monitoring_intervals, do_profile, - kdamonds, poll_add_child_tasks, poll_add_mem_footprint): + kdamonds, poll_add_child_tasks, record_mem_footprint): self.tracepoint = tracepoint self.file_path = file_path self.file_format = file_format @@ -763,7 +763,7 @@ class RecordingHandle: self.kdamonds = kdamonds self.poll_add_child_tasks = poll_add_child_tasks - if poll_add_mem_footprint is True: + if record_mem_footprint is True: self.mem_footprint_snapshots = [] def start_recording(handle): diff --git a/damo_record.py b/damo_record.py index f53acf5d..fcc16e79 100644 --- a/damo_record.py +++ b/damo_record.py @@ -119,7 +119,7 @@ def main(args): do_profile=args.profile is True, # for childs recording and memory footprint kdamonds=kdamonds, poll_add_child_tasks=args.include_child_tasks, - poll_add_mem_footprint=args.footprint) + record_mem_footprint=args.footprint) data_for_cleanup.record_handle = record_handle print('Press Ctrl+C to stop') |