2019-08-12 18:08:15 +00:00
|
|
|
#ifndef __TRACYSYSTRACE_HPP__
|
|
|
|
#define __TRACYSYSTRACE_HPP__
|
|
|
|
|
2021-10-07 21:28:40 +00:00
|
|
|
#if !defined TRACY_NO_SYSTEM_TRACING && ( defined _WIN32 || defined __linux__ )
|
2022-02-10 19:26:45 +00:00
|
|
|
# include "../common/TracyUwp.hpp"
|
|
|
|
# ifndef TRACY_UWP
|
2022-02-09 21:14:36 +00:00
|
|
|
# define TRACY_HAS_SYSTEM_TRACING
|
|
|
|
# endif
|
2019-08-12 18:08:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef TRACY_HAS_SYSTEM_TRACING
|
|
|
|
|
2019-08-16 17:22:23 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-08-12 18:08:15 +00:00
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
2020-02-25 22:08:52 +00:00
|
|
|
bool SysTraceStart( int64_t& samplingPeriod );
|
2019-08-12 18:08:15 +00:00
|
|
|
void SysTraceStop();
|
|
|
|
void SysTraceWorker( void* ptr );
|
|
|
|
|
2021-10-22 20:20:30 +00:00
|
|
|
void SysTraceGetExternalName( uint64_t thread, const char*& threadName, const char*& name );
|
2019-08-16 17:22:23 +00:00
|
|
|
|
2019-08-12 18:08:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|