mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 17:16:14 +03:00
37 lines
891 B
C
37 lines
891 B
C
#pragma once
|
|
|
|
#include <utils/utils.h>
|
|
#include <utils/compile_random.h>
|
|
|
|
#ifdef APP_DEBUG
|
|
#define TRACY_ENABLE
|
|
#endif
|
|
|
|
// MSVC /ZI build can't treat __LINE__ as a constexpr.
|
|
#if defined(_MSC_VER) && defined(APP_DEBUG)
|
|
#define TracyConstExpr const
|
|
#endif
|
|
|
|
#ifndef ENGINE_TRACY_CPP__FILE
|
|
#include <tracy/Tracy.hpp>
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
By default, Tracy will begin profiling even before the program enters the main function.
|
|
However, suppose you don¡¯t want to perform a full capture of the application lifetime.
|
|
In that case, you may define the TRACY_ON_DEMAND macro, which will enable profiling only
|
|
when there¡¯s an established connection with the server.
|
|
**/
|
|
// #define TRACY_ON_DEMAND
|
|
|
|
|
|
/**
|
|
By default, the Tracy client will announce its presence to the local network12.
|
|
If you want to disable this feature, define the TRACY_NO_BROADCAST macro.
|
|
*/
|
|
// #define TRACY_NO_BROADCAST
|
|
|