UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosInsightsMacros.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if UE_TRACE_ENABLED
6
7#include "CoreTypes.h"
8
9namespace Chaos::Insights
10{
11 enum class ELockEventType
12 {
13 Mutex,
16 };
17
21}
22
23#define TRACE_CHAOS_BEGIN_LOCK(Type) Chaos::Insights::BeginLockAcquireEvent(Type);
24#define TRACE_CHAOS_ACQUIRE_LOCK() Chaos::Insights::AcquiredLock();
25#define TRACE_CHAOS_END_LOCK() Chaos::Insights::EndLockAcquireEvent();
26
27#else
28
29#define TRACE_CHAOS_BEGIN_LOCK(...)
30#define TRACE_CHAOS_ACQUIRE_LOCK(...)
31#define TRACE_CHAOS_END_LOCK(...)
32
33#endif // UE_TRACE_ENABLED
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FRecursiveMutex Mutex
Definition MeshPaintVirtualTexture.cpp:164