aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-14 09:25:46 -0700
committerSeongJae Park <sj@kernel.org>2024-04-14 09:26:03 -0700
commit15d829f9ad7fffcdaf695ae1d852062105e487cf (patch)
treece3441a47ec84c88cff15e5e01bf3924da946a5c
parent6139d2cacbe2eee71bde5570bbc6d0a5c47f477a (diff)
downloaddamo-15d829f9ad7fffcdaf695ae1d852062105e487cf.tar.gz
_damo_records: Remove unused function, wait_recording()
Now start_recording() does not return until the recording is finished. So no user is using wait_recording(). Remove it. Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--_damo_records.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/_damo_records.py b/_damo_records.py
index 285c34e9..a62bce04 100644
--- a/_damo_records.py
+++ b/_damo_records.py
@@ -695,12 +695,6 @@ def start_recording(handle):
time.sleep(1)
_damon.wait_kdamonds_turned_off()
-def wait_recording(handle):
- while poll_target_pids(handle):
- time.sleep(1)
-
- _damon.wait_kdamonds_turned_off()
-
def finish_recording(handle):
try:
handle.perf_pipe.send_signal(signal.SIGINT)