87 lines
1.7 KiB
C++
87 lines
1.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
// HEADER_UNIT_SKIP - Not included directly
|
|
|
|
namespace UE {
|
|
namespace Trace {
|
|
|
|
#if defined(TRACE_PRIVATE_PROTOCOL_6)
|
|
inline
|
|
#endif
|
|
namespace Protocol6
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
enum EProtocol : uint8 { Id = 6 };
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
using Protocol5::EFieldType;
|
|
using Protocol5::FEventHeader;
|
|
using Protocol5::FImportantEventHeader;
|
|
using Protocol5::FEventHeaderSync;
|
|
using Protocol5::FAuxHeader;
|
|
using Protocol5::EKnownEventUids;
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
enum class EEventFlags : uint8
|
|
{
|
|
Important = 1 << 0,
|
|
MaybeHasAux = 1 << 1,
|
|
NoSync = 1 << 2,
|
|
Definition = 1 << 3,
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
enum EFieldFamily : uint8
|
|
{
|
|
Regular,
|
|
Reference,
|
|
DefinitionId,
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
struct FNewEventEvent
|
|
{
|
|
uint16 EventUid;
|
|
uint8 FieldCount;
|
|
uint8 Flags;
|
|
uint8 LoggerNameSize;
|
|
uint8 EventNameSize;
|
|
struct
|
|
{
|
|
uint8 FieldType;
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
uint16 Offset;
|
|
uint16 Size;
|
|
uint8 TypeInfo;
|
|
uint8 NameSize;
|
|
} Regular;
|
|
struct
|
|
{
|
|
uint16 Offset;
|
|
uint16 RefUid;
|
|
uint8 TypeInfo;
|
|
uint8 NameSize;
|
|
} Reference;
|
|
struct
|
|
{
|
|
uint16 Offset;
|
|
uint16 Unused1;
|
|
uint8 Unused2;
|
|
uint8 TypeInfo;
|
|
} DefinitionId;
|
|
};
|
|
} Fields[];
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
} // namespace Protocol6
|
|
} // namespace Trace
|
|
} // namespace UE
|