debug cleanup

This commit is contained in:
Marcos Slomp
2026-05-05 07:49:15 -07:00
parent 6b4ed90323
commit 761d50e8f5

View File

@@ -1,4 +1,8 @@
// Included by TracySysTrace.cpp
// (this file gets included by TracySysTrace.cpp)
#ifndef __APPLE__
#error this file can only be compiled for Apple targets
#endif
#include <atomic>
#include <mach/mach.h>
@@ -14,8 +18,6 @@
#include "../TracyStringHelpers.hpp"
#include "../TracyThread.hpp"
#include "../../tracy/Tracy.hpp"
namespace tracy
{
@@ -101,7 +103,6 @@ static void SysTraceSampleThread( mach_port_t tid )
static void SysTraceWait( uint64_t deadline )
{
ZoneScopedC(tracy::Color::DimGray);
mach_wait_until( deadline );
}
@@ -134,8 +135,6 @@ static void SysTraceWatch( mach_port_t selfThread )
SysTraceWait(deadline);
deadline = mach_absolute_time() + periodMach;
ZoneScoped;
#ifdef TRACY_ON_DEMAND
if( !GetProfiler().IsConnected() ) continue;
#endif
@@ -179,9 +178,6 @@ static void SysTraceWatch( mach_port_t selfThread )
mach_port_deallocate( mach_task_self(), threads[i] );
vm_deallocate( mach_task_self(), (vm_address_t)threads, sizeof(thread_t) * threadCount );
}
ZoneScopedNC("OUT", tracy::Color::Crimson);
std::this_thread::sleep_for( std::chrono::milliseconds(100) );
}
void SysTraceWorker( void* )