aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-14 09:24:49 -0700
committerSeongJae Park <sj@kernel.org>2024-04-14 09:24:49 -0700
commit46b5d91455a0a03580129c6d751f9003eeda5147 (patch)
treea1355ac48a7d940e34ef053738807b22407ba1b2
parentefccfa16dc41e15a46f38dc6a7e66fe5fad76a0f (diff)
downloaddamo-46b5d91455a0a03580129c6d751f9003eeda5147.tar.gz
_damo_records: Remove unused function start_recording()
Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--_damo_records.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/_damo_records.py b/_damo_records.py
index 227102b4..78728a3a 100644
--- a/_damo_records.py
+++ b/_damo_records.py
@@ -683,29 +683,6 @@ class RecordingHandle:
if poll_add_mem_footprint is True:
self.mem_footprint_snapshots = []
-'''
-Start recording DAMON's monitoring results and/or profile.
-
-Returns a handle object. The handle should be passed to finish_recording()
-later.
-'''
-def start_recording(tracepoint, file_path, file_format, file_permission,
- monitoring_intervals, profile, profile_target_pid,
- kdamonds, poll_add_child_tasks, poll_add_mem_footprint):
- pipe = subprocess.Popen(
- [PERF, 'record', '-a', '-e', tracepoint, '-o', file_path])
- profile_pipe = None
- if profile is True:
- cmd = [PERF, 'record', '-o', '%s.profile' % file_path]
- if profile_target_pid is not None:
- cmd += ['--pid', profile_target_pid]
- profile_pipe = subprocess.Popen(cmd)
- return RecordingHandle(
- tracepoint, file_path, file_format, file_permission,
- monitoring_intervals, pipe,
- profile, profile_pipe,
- kdamonds, poll_add_child_tasks, poll_add_mem_footprint)
-
def start_recording_v2(handle):
if handle.tracepoint is not None:
handle.perf_pipe = subprocess.Popen(