From 43f249281319a4bd8c41c2bfe54fa09479dcf364 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 17 Jul 2024 12:44:57 -0400 Subject: [PATCH] profile: Drop some unused code. Commented out and not needed. --- src/bin/debug/profile/Team.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/bin/debug/profile/Team.cpp b/src/bin/debug/profile/Team.cpp index defa4b1ba4..31c233b9cb 100644 --- a/src/bin/debug/profile/Team.cpp +++ b/src/bin/debug/profile/Team.cpp @@ -138,18 +138,6 @@ Team::InitThread(Thread* thread) } if (!_SynchronousProfiling()) { - // set thread debugging flags and start profiling - int32 threadDebugFlags = 0; -// if (!traceTeam) { -// threadDebugFlags = B_THREAD_DEBUG_POST_SYSCALL -// | (traceChildThreads -// ? B_THREAD_DEBUG_SYSCALL_TRACE_CHILD_THREADS : 0); -// } - status_t error = set_thread_debugging_flags(fNubPort, thread->ID(), - threadDebugFlags); - if (error != B_OK) - return error; - // start profiling debug_nub_start_profiler message; message.reply_port = fDebugContext.reply_port; @@ -161,7 +149,7 @@ Team::InitThread(Thread* thread) message.profile_kernel = gOptions.profile_kernel; debug_nub_start_profiler_reply reply; - error = send_debug_message(&fDebugContext, + status_t error = send_debug_message(&fDebugContext, B_DEBUG_START_PROFILER, &message, sizeof(message), &reply, sizeof(reply)); if (error != B_OK || (error = reply.error) != B_OK) {