-
Notifications
You must be signed in to change notification settings - Fork 47
/
tracy.hh.cmake
33 lines (29 loc) · 1.13 KB
/
tracy.hh.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* This file has been automatically generated by the jrl-cmakemodules.
* Please see
* https://github.com/jrl-umi3218/jrl-cmakemodules/blob/master/tracy.hh.cmake for
* details.
*/
#ifndef @LIBRARY_NAME@_TRACY_HPP
#define @LIBRARY_NAME@_TRACY_HPP
@DEFINE_TRACY_ENABLE@
#ifdef @LIBRARY_NAME@_TRACY_ENABLE
#if defined(__clang__) || defined(__GNUC__)
#define TracyFunction __PRETTY_FUNCTION__
#elif defined(_MSC_VER)
#define TracyFunction __FUNCSIG__
#endif
#include <tracy/Tracy.hpp>
#define @LIBRARY_NAME@_TRACY_ZONE_SCOPED_N(name) ZoneScopedN(name)
#define @LIBRARY_NAME@_TRACY_ZONE_SCOPED ZoneScoped
#define @LIBRARY_NAME@_TRACY_ZONE_NAMED_N(varname, name, active) ZoneNamedN(varname, name, active)
#define @LIBRARY_NAME@_TRACY_ZONE_NAMED(varname, active) ZoneNamed(varname, active)
#define @LIBRARY_NAME@_TRACY_SET_THREAD_NAME(name) tracy::SetThreadName(name)
#else
#define @LIBRARY_NAME@_TRACY_ZONE_SCOPED_N(x)
#define @LIBRARY_NAME@_TRACY_ZONE_SCOPED
#define @LIBRARY_NAME@_TRACY_ZONE_NAMED_N(x, y, z)
#define @LIBRARY_NAME@_TRACY_ZONE_NAMED(x, y)
#define @LIBRARY_NAME@_TRACY_SET_THREAD_NAME(x)
#endif
#endif // @LIBRARY_NAME@_TRACY_HPP