RAVENNAKIT
Loading...
Searching...
No Matches
tracy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-or-later
2/*
3 * Project: RAVENNAKIT (RAVENNA / AES67 / ST2110-30 SDK)
4 * Copyright (c) 2024-2025 Sound on Digital
5 *
6 * This file is part of RAVENNAKIT.
7 *
8 * RAVENNAKIT is dual-licensed:
9 * 1) Under the terms of the GNU Affero General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version (the "AGPL License"); and
12 * 2) Under a commercial license from Sound on Digital, for customers who
13 * cannot (or do not wish to) comply with the AGPL License terms.
14 *
15 * If you obtained this file under the AGPL License, you may redistribute it
16 * and/or modify it under the terms of the AGPL License. See the LICENSE
17 * file in the project root for details.
18 *
19 * For commercial licensing, support, and other inquiries, please visit:
20 *
21 * https://ravennakit.com
22 *
23 */
24
25#pragma once
26
29
30#if defined(TRACY_ENABLE) && TRACY_ENABLE
31 #if RAV_APPLE
32 #define TracyFunction __PRETTY_FUNCTION__
33 #endif
34
36 #include <tracy/Tracy.hpp>
37RAV_END_IGNORE_WARNINGS
38
39 #define TRACY_ZONE_SCOPED ZoneScoped // NOLINT(bugprone-reserved-identifier)
40 #define TRACY_PLOT(name, value) TracyPlot(name, value)
41 #define TRACY_MESSAGE(message) TracyMessageL(message)
42 #define TRACY_MESSAGE_COLOR(message, color) TracyMessageLC(message, color)
43 #define TRACY_SET_THREAD_NAME(name) tracy::SetThreadName(name)
44#else
45 #define TRACY_ZONE_SCOPED
46 #define TRACY_PLOT(...)
47 #define TRACY_MESSAGE(...)
48 #define TRACY_MESSAGE_COLOR(...)
49 #define TRACY_SET_THREAD_NAME(...)
50#endif
51
52namespace rav {
53
58inline void tracy_point() {
60}
61
62} // namespace rav
RAV_BEGIN_IGNORE_WARNINGS
Definition format.hpp:28
void tracy_point()
Sometimes you want to know when something happened, but you don't want to instrument functions which ...
Definition tracy.hpp:58
#define TRACY_ZONE_SCOPED
Definition tracy.hpp:45