mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 08:14:34 +00:00
29 lines
539 B
C++
29 lines
539 B
C++
#ifndef __TRACYSYSTRACE_HPP__
|
|
#define __TRACYSYSTRACE_HPP__
|
|
|
|
#if !defined TRACY_NO_SYSTEM_TRACING && ( defined _WIN32 || defined __linux__ )
|
|
# include "../common/TracyUwp.hpp"
|
|
# ifndef TRACY_UWP
|
|
# define TRACY_HAS_SYSTEM_TRACING
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef TRACY_HAS_SYSTEM_TRACING
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
bool SysTraceStart( int64_t& samplingPeriod );
|
|
void SysTraceStop();
|
|
void SysTraceWorker( void* ptr );
|
|
|
|
void SysTraceGetExternalName( uint64_t thread, const char*& threadName, const char*& name );
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|