MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrUtil
lgrProfiler.h
Go to the documentation of this file.
1
#pragma once
2
#ifdef ENABLE_PROFILER
4
//tracy
5
#ifdef TRACY_ENABLE
6
#ifdef max
7
#undef max
8
#endif
9
#define TRACY_ON_DEMAND
10
//#define TRACY_NO_BROADCAST
11
// TO DO include tracy on linux just to get it's macros for throwing things out
12
#include <TracyClient/Tracy.hpp>
13
//#pragma comment(lib, "TracyClient.lib")
14
15
#define ZoneScopedNA( name, active ) ZoneNamedN( ___tracy_scoped_zone, name, active )
16
#define ZoneScopedNCA( name, color, active ) ZoneNamedNC( ___tracy_scoped_zone, name, color, active )
17
18
// win32 creates macros that work with our stats and tracy
19
#define DtPROFILE(name) ZoneScopedNA(name, true);
20
#define DtPROFILEC(name, color) ZoneScopedNCA(name, color, true);
21
22
#define DtPROFILE_SECTION(name) {ZoneScopedNA(name, true);
23
24
#define DtProfilerFrameMark { FrameMark; }
25
#define DtProfilerPlot(x,y) TracyPlot(x,y)
26
#define DtProfilerThreadName(name) tracy::SetThreadName(name );
27
28
29
#endif
30
#else
31
#define DtPROFILE(name) DtPROFILE_X(name, __LINE__);
32
#define DtPROFILEC(name, color) DtPROFILE_X(name, __LINE__);
33
#define DtPROFILE_SECTION(name)
34
35
#define DtProfilerPlot(x,y)
36
37
#define DtProfilerFrameMark
38
#define DtProfilerThreadName(name)
39
#define DtProfilerPlot(x,y)
40
#endif
41
42
#define DtPROFILE_RESTRICTED(name, target)
43
44
#define DtPROFILE_X(name, line) DtPROFILE_ACTUAL(name, line)
45
#define DtPROFILE_ACTUAL(name, line)
46
47
#define DtPROFILE_SECTION_END }
48
49
#define DtPERFORMANCE_STAT(name) DtPERFORMANCE_STAT_X(name, __LINE__)
50
#define DtPERFORMANCE_STAT_X(name, line) DtPERFORMANCE_STAT_ACTUAL(name, line)
51
#define DtPERFORMANCE_STAT_ACTUAL(name, line)
Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (
www.mak.com
)