mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-18 23:05:23 +00:00
debug cleanup
This commit is contained in:
@@ -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* )
|
||||
|
||||
Reference in New Issue
Block a user