2017-09-10 18:06:52 +00:00
|
|
|
#ifndef __TRACYQUEUE_HPP__
|
|
|
|
#define __TRACYQUEUE_HPP__
|
|
|
|
|
2022-04-26 19:23:22 +00:00
|
|
|
#include <stddef.h>
|
2017-09-10 18:06:52 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
|
|
|
enum class QueueType : uint8_t
|
|
|
|
{
|
2017-11-22 01:28:12 +00:00
|
|
|
ZoneText,
|
2018-06-29 14:01:31 +00:00
|
|
|
ZoneName,
|
2017-11-22 01:28:12 +00:00
|
|
|
Message,
|
2019-05-10 18:17:44 +00:00
|
|
|
MessageColor,
|
2019-11-14 22:40:41 +00:00
|
|
|
MessageCallstack,
|
|
|
|
MessageColorCallstack,
|
2019-07-12 16:14:42 +00:00
|
|
|
MessageAppInfo,
|
2017-11-22 01:28:12 +00:00
|
|
|
ZoneBeginAllocSrcLoc,
|
2019-03-03 16:47:26 +00:00
|
|
|
ZoneBeginAllocSrcLocCallstack,
|
2021-01-15 19:49:39 +00:00
|
|
|
CallstackSerial,
|
2018-06-21 22:56:01 +00:00
|
|
|
Callstack,
|
2019-02-28 19:16:19 +00:00
|
|
|
CallstackAlloc,
|
2020-02-22 12:42:09 +00:00
|
|
|
CallstackSample,
|
2021-12-21 13:05:07 +00:00
|
|
|
CallstackSampleContextSwitch,
|
2019-06-06 19:39:54 +00:00
|
|
|
FrameImage,
|
2019-10-23 22:04:31 +00:00
|
|
|
ZoneBegin,
|
|
|
|
ZoneBeginCallstack,
|
|
|
|
ZoneEnd,
|
|
|
|
LockWait,
|
|
|
|
LockObtain,
|
|
|
|
LockRelease,
|
|
|
|
LockSharedWait,
|
|
|
|
LockSharedObtain,
|
|
|
|
LockSharedRelease,
|
2020-03-08 12:47:38 +00:00
|
|
|
LockName,
|
2019-10-23 22:04:31 +00:00
|
|
|
MemAlloc,
|
2020-09-22 16:22:34 +00:00
|
|
|
MemAllocNamed,
|
2019-10-23 22:04:31 +00:00
|
|
|
MemFree,
|
2020-09-22 16:22:34 +00:00
|
|
|
MemFreeNamed,
|
2019-10-23 22:04:31 +00:00
|
|
|
MemAllocCallstack,
|
2020-09-22 16:22:34 +00:00
|
|
|
MemAllocCallstackNamed,
|
2019-10-23 22:04:31 +00:00
|
|
|
MemFreeCallstack,
|
2020-09-22 16:22:34 +00:00
|
|
|
MemFreeCallstackNamed,
|
2019-10-23 22:04:31 +00:00
|
|
|
GpuZoneBegin,
|
|
|
|
GpuZoneBeginCallstack,
|
2021-01-15 19:13:09 +00:00
|
|
|
GpuZoneBeginAllocSrcLoc,
|
|
|
|
GpuZoneBeginAllocSrcLocCallstack,
|
2019-10-23 22:04:31 +00:00
|
|
|
GpuZoneEnd,
|
|
|
|
GpuZoneBeginSerial,
|
|
|
|
GpuZoneBeginCallstackSerial,
|
2021-01-15 19:13:09 +00:00
|
|
|
GpuZoneBeginAllocSrcLocSerial,
|
|
|
|
GpuZoneBeginAllocSrcLocCallstackSerial,
|
2019-10-23 22:04:31 +00:00
|
|
|
GpuZoneEndSerial,
|
2022-07-24 11:00:36 +00:00
|
|
|
PlotDataInt,
|
|
|
|
PlotDataFloat,
|
|
|
|
PlotDataDouble,
|
2019-10-25 17:13:11 +00:00
|
|
|
ContextSwitch,
|
|
|
|
ThreadWakeup,
|
2019-10-25 17:52:01 +00:00
|
|
|
GpuTime,
|
2021-01-31 17:46:42 +00:00
|
|
|
GpuContextName,
|
2021-10-22 20:25:09 +00:00
|
|
|
CallstackFrameSize,
|
|
|
|
SymbolInformation,
|
|
|
|
ExternalNameMetadata,
|
2021-11-25 21:24:17 +00:00
|
|
|
SymbolCodeMetadata,
|
2022-10-12 22:27:28 +00:00
|
|
|
SourceCodeMetadata,
|
2021-11-01 22:56:19 +00:00
|
|
|
FiberEnter,
|
|
|
|
FiberLeave,
|
2017-10-18 16:48:51 +00:00
|
|
|
Terminate,
|
2018-07-10 19:23:19 +00:00
|
|
|
KeepAlive,
|
2019-08-02 18:18:08 +00:00
|
|
|
ThreadContext,
|
2020-07-07 18:32:25 +00:00
|
|
|
GpuCalibration,
|
2018-08-19 23:03:16 +00:00
|
|
|
Crash,
|
2018-08-20 00:07:31 +00:00
|
|
|
CrashReport,
|
2019-01-14 21:16:14 +00:00
|
|
|
ZoneValidation,
|
2020-11-27 11:37:35 +00:00
|
|
|
ZoneColor,
|
2020-05-24 14:13:09 +00:00
|
|
|
ZoneValue,
|
2017-09-28 19:20:33 +00:00
|
|
|
FrameMarkMsg,
|
2018-08-05 00:09:59 +00:00
|
|
|
FrameMarkMsgStart,
|
|
|
|
FrameMarkMsgEnd,
|
2022-07-30 17:50:42 +00:00
|
|
|
FrameVsync,
|
2017-09-26 00:28:14 +00:00
|
|
|
SourceLocation,
|
2017-12-10 20:37:39 +00:00
|
|
|
LockAnnounce,
|
2018-12-16 19:37:48 +00:00
|
|
|
LockTerminate,
|
2017-10-06 14:32:32 +00:00
|
|
|
LockMark,
|
2017-10-15 11:06:49 +00:00
|
|
|
MessageLiteral,
|
2019-05-10 18:17:44 +00:00
|
|
|
MessageLiteralColor,
|
2019-11-14 22:40:41 +00:00
|
|
|
MessageLiteralCallstack,
|
|
|
|
MessageLiteralColorCallstack,
|
2017-11-11 18:44:09 +00:00
|
|
|
GpuNewContext,
|
2018-06-19 23:06:31 +00:00
|
|
|
CallstackFrame,
|
2019-02-21 20:59:02 +00:00
|
|
|
SysTimeReport,
|
2023-03-09 23:23:09 +00:00
|
|
|
SysPowerReport,
|
2019-08-17 20:32:41 +00:00
|
|
|
TidToPid,
|
2021-05-19 00:20:35 +00:00
|
|
|
HwSampleCpuCycle,
|
|
|
|
HwSampleInstructionRetired,
|
2021-05-20 00:15:06 +00:00
|
|
|
HwSampleCacheReference,
|
|
|
|
HwSampleCacheMiss,
|
|
|
|
HwSampleBranchRetired,
|
|
|
|
HwSampleBranchMiss,
|
2019-11-05 15:47:41 +00:00
|
|
|
PlotConfig,
|
2019-11-25 22:59:48 +00:00
|
|
|
ParamSetup,
|
2021-02-03 20:47:03 +00:00
|
|
|
AckServerQueryNoop,
|
2021-02-03 23:03:25 +00:00
|
|
|
AckSourceCodeNotAvailable,
|
2021-11-25 21:44:56 +00:00
|
|
|
AckSymbolCodeNotAvailable,
|
2019-11-29 21:41:41 +00:00
|
|
|
CpuTopology,
|
2020-07-25 21:13:01 +00:00
|
|
|
SingleStringData,
|
2020-07-25 23:32:49 +00:00
|
|
|
SecondStringData,
|
2020-09-22 16:22:34 +00:00
|
|
|
MemNamePayload,
|
2017-11-19 01:42:04 +00:00
|
|
|
StringData,
|
|
|
|
ThreadName,
|
|
|
|
PlotName,
|
|
|
|
SourceLocationPayload,
|
2018-06-19 17:09:43 +00:00
|
|
|
CallstackPayload,
|
2019-02-28 19:30:07 +00:00
|
|
|
CallstackAllocPayload,
|
2018-08-04 18:48:21 +00:00
|
|
|
FrameName,
|
2019-06-06 19:39:54 +00:00
|
|
|
FrameImageData,
|
2019-08-16 17:22:23 +00:00
|
|
|
ExternalName,
|
2019-08-16 17:49:16 +00:00
|
|
|
ExternalThreadName,
|
2020-03-25 19:04:55 +00:00
|
|
|
SymbolCode,
|
2021-02-03 23:03:25 +00:00
|
|
|
SourceCode,
|
2021-11-03 17:57:30 +00:00
|
|
|
FiberName,
|
2017-09-11 23:14:04 +00:00
|
|
|
NUM_TYPES
|
2017-09-10 18:06:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-03 04:42:21 +00:00
|
|
|
#pragma pack( push, 1 )
|
2017-09-11 22:28:50 +00:00
|
|
|
|
2019-08-02 18:18:08 +00:00
|
|
|
struct QueueThreadContext
|
|
|
|
{
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2019-08-02 18:18:08 +00:00
|
|
|
};
|
|
|
|
|
2020-05-10 17:20:59 +00:00
|
|
|
struct QueueZoneBeginLean
|
2017-09-10 18:06:52 +00:00
|
|
|
{
|
2017-09-13 23:07:14 +00:00
|
|
|
int64_t time;
|
2020-05-10 17:20:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueZoneBegin : public QueueZoneBeginLean
|
|
|
|
{
|
2017-10-03 14:41:32 +00:00
|
|
|
uint64_t srcloc; // ptr
|
2017-09-10 18:06:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-09 12:58:33 +00:00
|
|
|
struct QueueZoneBeginThread : public QueueZoneBegin
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2017-09-10 18:06:52 +00:00
|
|
|
struct QueueZoneEnd
|
|
|
|
{
|
2017-09-13 23:07:14 +00:00
|
|
|
int64_t time;
|
2017-09-10 18:06:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-09 12:58:33 +00:00
|
|
|
struct QueueZoneEndThread : public QueueZoneEnd
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2019-01-14 21:16:14 +00:00
|
|
|
struct QueueZoneValidation
|
|
|
|
{
|
|
|
|
uint32_t id;
|
|
|
|
};
|
|
|
|
|
2021-11-04 21:50:55 +00:00
|
|
|
struct QueueZoneValidationThread : public QueueZoneValidation
|
2021-10-09 13:50:09 +00:00
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-11-27 11:37:35 +00:00
|
|
|
struct QueueZoneColor
|
|
|
|
{
|
|
|
|
uint8_t b;
|
2023-01-23 00:18:23 +00:00
|
|
|
uint8_t g;
|
|
|
|
uint8_t r;
|
2020-11-27 11:37:35 +00:00
|
|
|
};
|
|
|
|
|
2021-10-09 12:58:33 +00:00
|
|
|
struct QueueZoneColorThread : public QueueZoneColor
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-05-24 14:13:09 +00:00
|
|
|
struct QueueZoneValue
|
|
|
|
{
|
|
|
|
uint64_t value;
|
|
|
|
};
|
|
|
|
|
2021-10-09 12:58:33 +00:00
|
|
|
struct QueueZoneValueThread : public QueueZoneValue
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2017-10-03 14:41:32 +00:00
|
|
|
struct QueueStringTransfer
|
|
|
|
{
|
|
|
|
uint64_t ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueFrameMark
|
|
|
|
{
|
|
|
|
int64_t time;
|
2018-08-04 13:03:47 +00:00
|
|
|
uint64_t name; // ptr
|
2017-10-03 14:41:32 +00:00
|
|
|
};
|
|
|
|
|
2022-07-30 17:50:42 +00:00
|
|
|
struct QueueFrameVsync
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
uint32_t id;
|
|
|
|
};
|
|
|
|
|
2020-07-26 12:18:48 +00:00
|
|
|
struct QueueFrameImage
|
2019-06-06 19:39:54 +00:00
|
|
|
{
|
2020-07-26 11:23:44 +00:00
|
|
|
uint32_t frame;
|
2019-06-06 19:39:54 +00:00
|
|
|
uint16_t w;
|
|
|
|
uint16_t h;
|
2019-06-12 13:28:32 +00:00
|
|
|
uint8_t flip;
|
2019-06-06 19:39:54 +00:00
|
|
|
};
|
|
|
|
|
2020-07-26 12:18:48 +00:00
|
|
|
struct QueueFrameImageFat : public QueueFrameImage
|
2020-05-10 18:16:08 +00:00
|
|
|
{
|
|
|
|
uint64_t image; // ptr
|
|
|
|
};
|
|
|
|
|
2017-09-26 00:28:14 +00:00
|
|
|
struct QueueSourceLocation
|
|
|
|
{
|
2017-11-14 22:06:45 +00:00
|
|
|
uint64_t name;
|
2017-09-26 00:28:14 +00:00
|
|
|
uint64_t function; // ptr
|
|
|
|
uint64_t file; // ptr
|
|
|
|
uint32_t line;
|
2017-10-13 17:59:18 +00:00
|
|
|
uint8_t b;
|
2023-01-23 00:23:15 +00:00
|
|
|
uint8_t g;
|
|
|
|
uint8_t r;
|
2017-09-26 00:28:14 +00:00
|
|
|
};
|
|
|
|
|
2020-07-25 22:53:55 +00:00
|
|
|
struct QueueZoneTextFat
|
2017-09-27 00:18:17 +00:00
|
|
|
{
|
|
|
|
uint64_t text; // ptr
|
2020-07-21 18:09:25 +00:00
|
|
|
uint16_t size;
|
|
|
|
};
|
|
|
|
|
2021-10-09 12:58:33 +00:00
|
|
|
struct QueueZoneTextFatThread : public QueueZoneTextFat
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2017-12-10 20:37:39 +00:00
|
|
|
enum class LockType : uint8_t
|
|
|
|
{
|
2017-12-10 20:49:45 +00:00
|
|
|
Lockable,
|
|
|
|
SharedLockable
|
2017-12-10 20:37:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueLockAnnounce
|
|
|
|
{
|
|
|
|
uint32_t id;
|
2018-12-16 19:33:18 +00:00
|
|
|
int64_t time;
|
2017-12-10 20:37:39 +00:00
|
|
|
uint64_t lckloc; // ptr
|
|
|
|
LockType type;
|
|
|
|
};
|
|
|
|
|
2021-11-01 22:56:19 +00:00
|
|
|
struct QueueFiberEnter
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
uint64_t fiber; // ptr
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueFiberLeave
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2018-12-16 19:37:48 +00:00
|
|
|
struct QueueLockTerminate
|
|
|
|
{
|
|
|
|
uint32_t id;
|
|
|
|
int64_t time;
|
|
|
|
};
|
|
|
|
|
2017-10-04 14:16:27 +00:00
|
|
|
struct QueueLockWait
|
|
|
|
{
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2017-10-13 18:05:38 +00:00
|
|
|
uint32_t id;
|
2017-10-04 14:45:46 +00:00
|
|
|
int64_t time;
|
2017-10-04 14:16:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueLockObtain
|
|
|
|
{
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2017-10-13 18:05:38 +00:00
|
|
|
uint32_t id;
|
2017-10-04 14:45:46 +00:00
|
|
|
int64_t time;
|
2017-10-04 14:16:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueLockRelease
|
|
|
|
{
|
2017-10-13 18:05:38 +00:00
|
|
|
uint32_t id;
|
2017-10-04 14:45:46 +00:00
|
|
|
int64_t time;
|
2017-10-04 14:16:27 +00:00
|
|
|
};
|
|
|
|
|
2022-07-17 23:56:09 +00:00
|
|
|
struct QueueLockReleaseShared : public QueueLockRelease
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2017-10-06 14:32:32 +00:00
|
|
|
struct QueueLockMark
|
|
|
|
{
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2017-10-13 18:05:38 +00:00
|
|
|
uint32_t id;
|
2017-10-06 14:32:32 +00:00
|
|
|
uint64_t srcloc; // ptr
|
|
|
|
};
|
|
|
|
|
2020-03-08 12:47:38 +00:00
|
|
|
struct QueueLockName
|
|
|
|
{
|
|
|
|
uint32_t id;
|
2020-07-25 23:22:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueLockNameFat : public QueueLockName
|
|
|
|
{
|
2020-03-08 12:47:38 +00:00
|
|
|
uint64_t name; // ptr
|
2020-07-25 23:22:09 +00:00
|
|
|
uint16_t size;
|
2020-03-08 12:47:38 +00:00
|
|
|
};
|
|
|
|
|
2022-07-24 11:00:36 +00:00
|
|
|
struct QueuePlotDataBase
|
2017-10-13 00:21:29 +00:00
|
|
|
{
|
2022-07-24 11:00:36 +00:00
|
|
|
uint64_t name; // ptr
|
|
|
|
int64_t time;
|
2017-10-13 00:21:29 +00:00
|
|
|
};
|
|
|
|
|
2022-07-24 11:00:36 +00:00
|
|
|
struct QueuePlotDataInt : public QueuePlotDataBase
|
2017-10-13 00:07:03 +00:00
|
|
|
{
|
2022-07-24 11:00:36 +00:00
|
|
|
int64_t val;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueuePlotDataFloat : public QueuePlotDataBase
|
|
|
|
{
|
|
|
|
float val;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueuePlotDataDouble : public QueuePlotDataBase
|
|
|
|
{
|
|
|
|
double val;
|
2017-10-13 00:07:03 +00:00
|
|
|
};
|
|
|
|
|
2017-10-14 11:23:13 +00:00
|
|
|
struct QueueMessage
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
};
|
|
|
|
|
2019-05-10 18:17:44 +00:00
|
|
|
struct QueueMessageColor : public QueueMessage
|
|
|
|
{
|
|
|
|
uint8_t b;
|
2023-01-23 00:07:07 +00:00
|
|
|
uint8_t g;
|
|
|
|
uint8_t r;
|
2019-05-10 18:17:44 +00:00
|
|
|
};
|
|
|
|
|
2020-07-25 23:15:11 +00:00
|
|
|
struct QueueMessageLiteral : public QueueMessage
|
|
|
|
{
|
|
|
|
uint64_t text; // ptr
|
|
|
|
};
|
|
|
|
|
2021-10-10 13:54:21 +00:00
|
|
|
struct QueueMessageLiteralThread : public QueueMessageLiteral
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-07-25 23:15:11 +00:00
|
|
|
struct QueueMessageColorLiteral : public QueueMessageColor
|
|
|
|
{
|
|
|
|
uint64_t text; // ptr
|
|
|
|
};
|
|
|
|
|
2021-10-10 13:54:21 +00:00
|
|
|
struct QueueMessageColorLiteralThread : public QueueMessageColorLiteral
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-07-21 18:22:59 +00:00
|
|
|
struct QueueMessageFat : public QueueMessage
|
|
|
|
{
|
2020-07-25 23:15:11 +00:00
|
|
|
uint64_t text; // ptr
|
2020-07-21 18:22:59 +00:00
|
|
|
uint16_t size;
|
|
|
|
};
|
|
|
|
|
2021-10-10 13:54:21 +00:00
|
|
|
struct QueueMessageFatThread : public QueueMessageFat
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-07-21 18:22:59 +00:00
|
|
|
struct QueueMessageColorFat : public QueueMessageColor
|
|
|
|
{
|
2020-07-25 23:15:11 +00:00
|
|
|
uint64_t text; // ptr
|
2020-07-21 18:22:59 +00:00
|
|
|
uint16_t size;
|
|
|
|
};
|
|
|
|
|
2021-10-10 13:54:21 +00:00
|
|
|
struct QueueMessageColorFatThread : public QueueMessageColorFat
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-05-27 16:16:53 +00:00
|
|
|
// Don't change order, only add new entries at the end, this is also used on trace dumps!
|
|
|
|
enum class GpuContextType : uint8_t
|
|
|
|
{
|
|
|
|
Invalid,
|
|
|
|
OpenGl,
|
2020-06-07 06:40:08 +00:00
|
|
|
Vulkan,
|
2020-06-09 05:50:20 +00:00
|
|
|
OpenCL,
|
2020-08-07 15:05:11 +00:00
|
|
|
Direct3D12,
|
|
|
|
Direct3D11
|
2020-05-27 16:16:53 +00:00
|
|
|
};
|
|
|
|
|
2020-07-07 18:32:25 +00:00
|
|
|
enum GpuContextFlags : uint8_t
|
|
|
|
{
|
|
|
|
GpuContextCalibration = 1 << 0
|
|
|
|
};
|
|
|
|
|
2017-11-11 18:44:09 +00:00
|
|
|
struct QueueGpuNewContext
|
|
|
|
{
|
2017-11-25 12:14:16 +00:00
|
|
|
int64_t cpuTime;
|
|
|
|
int64_t gpuTime;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2018-06-17 16:21:15 +00:00
|
|
|
float period;
|
2018-06-22 13:10:23 +00:00
|
|
|
uint8_t context;
|
2020-07-07 18:32:25 +00:00
|
|
|
GpuContextFlags flags;
|
2020-05-27 16:16:53 +00:00
|
|
|
GpuContextType type;
|
2017-11-11 18:44:09 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 19:13:09 +00:00
|
|
|
struct QueueGpuZoneBeginLean
|
2017-11-11 20:09:48 +00:00
|
|
|
{
|
|
|
|
int64_t cpuTime;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2018-06-22 13:57:54 +00:00
|
|
|
uint16_t queryId;
|
2018-06-22 13:10:23 +00:00
|
|
|
uint8_t context;
|
2017-11-11 20:09:48 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 19:13:09 +00:00
|
|
|
struct QueueGpuZoneBegin : public QueueGpuZoneBeginLean
|
|
|
|
{
|
|
|
|
uint64_t srcloc;
|
|
|
|
};
|
|
|
|
|
2017-11-11 20:09:48 +00:00
|
|
|
struct QueueGpuZoneEnd
|
|
|
|
{
|
|
|
|
int64_t cpuTime;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2018-06-22 13:57:54 +00:00
|
|
|
uint16_t queryId;
|
2018-06-22 13:10:23 +00:00
|
|
|
uint8_t context;
|
2017-11-11 20:09:48 +00:00
|
|
|
};
|
|
|
|
|
2017-11-11 21:08:47 +00:00
|
|
|
struct QueueGpuTime
|
|
|
|
{
|
|
|
|
int64_t gpuTime;
|
2018-06-22 14:19:53 +00:00
|
|
|
uint16_t queryId;
|
2018-06-22 13:10:23 +00:00
|
|
|
uint8_t context;
|
2017-11-11 21:08:47 +00:00
|
|
|
};
|
|
|
|
|
2020-07-07 18:32:25 +00:00
|
|
|
struct QueueGpuCalibration
|
|
|
|
{
|
|
|
|
int64_t gpuTime;
|
|
|
|
int64_t cpuTime;
|
|
|
|
int64_t cpuDelta;
|
|
|
|
uint8_t context;
|
|
|
|
};
|
|
|
|
|
2021-01-31 17:46:42 +00:00
|
|
|
struct QueueGpuContextName
|
|
|
|
{
|
|
|
|
uint8_t context;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueGpuContextNameFat : public QueueGpuContextName
|
|
|
|
{
|
|
|
|
uint64_t ptr;
|
|
|
|
uint16_t size;
|
|
|
|
};
|
|
|
|
|
2020-09-22 16:22:34 +00:00
|
|
|
struct QueueMemNamePayload
|
|
|
|
{
|
|
|
|
uint64_t name;
|
|
|
|
};
|
|
|
|
|
2018-03-31 19:56:05 +00:00
|
|
|
struct QueueMemAlloc
|
|
|
|
{
|
|
|
|
int64_t time;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2018-03-31 19:56:05 +00:00
|
|
|
uint64_t ptr;
|
|
|
|
char size[6];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueMemFree
|
|
|
|
{
|
|
|
|
int64_t time;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2018-03-31 19:56:05 +00:00
|
|
|
uint64_t ptr;
|
|
|
|
};
|
|
|
|
|
2020-07-26 12:15:16 +00:00
|
|
|
struct QueueCallstackFat
|
2018-06-21 22:56:01 +00:00
|
|
|
{
|
|
|
|
uint64_t ptr;
|
|
|
|
};
|
|
|
|
|
2021-10-10 14:14:17 +00:00
|
|
|
struct QueueCallstackFatThread : public QueueCallstackFat
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-07-26 12:25:32 +00:00
|
|
|
struct QueueCallstackAllocFat
|
2019-03-05 01:00:31 +00:00
|
|
|
{
|
|
|
|
uint64_t ptr;
|
|
|
|
uint64_t nativePtr;
|
|
|
|
};
|
|
|
|
|
2021-10-10 14:14:17 +00:00
|
|
|
struct QueueCallstackAllocFatThread : public QueueCallstackAllocFat
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2020-07-26 12:28:13 +00:00
|
|
|
struct QueueCallstackSample
|
2020-02-22 12:42:09 +00:00
|
|
|
{
|
|
|
|
int64_t time;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2020-05-10 18:00:51 +00:00
|
|
|
};
|
|
|
|
|
2020-07-26 12:28:13 +00:00
|
|
|
struct QueueCallstackSampleFat : public QueueCallstackSample
|
2020-05-10 18:00:51 +00:00
|
|
|
{
|
2020-02-22 12:42:09 +00:00
|
|
|
uint64_t ptr;
|
|
|
|
};
|
|
|
|
|
2019-01-20 18:11:48 +00:00
|
|
|
struct QueueCallstackFrameSize
|
2018-06-19 23:06:31 +00:00
|
|
|
{
|
|
|
|
uint64_t ptr;
|
2019-01-20 18:11:48 +00:00
|
|
|
uint8_t size;
|
|
|
|
};
|
|
|
|
|
2021-10-22 20:17:09 +00:00
|
|
|
struct QueueCallstackFrameSizeFat : public QueueCallstackFrameSize
|
|
|
|
{
|
|
|
|
uint64_t data;
|
|
|
|
uint64_t imageName;
|
|
|
|
};
|
|
|
|
|
2019-01-20 18:11:48 +00:00
|
|
|
struct QueueCallstackFrame
|
|
|
|
{
|
2018-06-19 23:06:31 +00:00
|
|
|
uint32_t line;
|
2020-02-25 22:03:40 +00:00
|
|
|
uint64_t symAddr;
|
2020-07-25 22:43:24 +00:00
|
|
|
uint32_t symLen;
|
2018-06-19 23:06:31 +00:00
|
|
|
};
|
|
|
|
|
2020-02-27 11:49:48 +00:00
|
|
|
struct QueueSymbolInformation
|
|
|
|
{
|
|
|
|
uint32_t line;
|
|
|
|
uint64_t symAddr;
|
|
|
|
};
|
|
|
|
|
2021-10-22 20:17:09 +00:00
|
|
|
struct QueueSymbolInformationFat : public QueueSymbolInformation
|
|
|
|
{
|
|
|
|
uint64_t fileString;
|
|
|
|
uint8_t needFree;
|
|
|
|
};
|
|
|
|
|
2018-08-20 00:07:31 +00:00
|
|
|
struct QueueCrashReport
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
uint64_t text; // ptr
|
|
|
|
};
|
|
|
|
|
2021-10-10 13:58:24 +00:00
|
|
|
struct QueueCrashReportThread
|
|
|
|
{
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2019-02-21 20:59:02 +00:00
|
|
|
struct QueueSysTime
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
float sysTime;
|
|
|
|
};
|
|
|
|
|
2023-03-09 23:23:09 +00:00
|
|
|
struct QueueSysPower
|
|
|
|
{
|
|
|
|
int64_t time;
|
|
|
|
uint64_t delta;
|
|
|
|
uint64_t name; // ptr
|
|
|
|
};
|
|
|
|
|
2019-08-12 21:05:17 +00:00
|
|
|
struct QueueContextSwitch
|
|
|
|
{
|
|
|
|
int64_t time;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t oldThread;
|
|
|
|
uint32_t newThread;
|
2019-08-12 21:05:17 +00:00
|
|
|
uint8_t cpu;
|
|
|
|
uint8_t reason;
|
|
|
|
uint8_t state;
|
|
|
|
};
|
|
|
|
|
2019-08-17 15:05:29 +00:00
|
|
|
struct QueueThreadWakeup
|
|
|
|
{
|
|
|
|
int64_t time;
|
2021-10-07 22:42:52 +00:00
|
|
|
uint32_t thread;
|
2019-08-17 15:05:29 +00:00
|
|
|
};
|
|
|
|
|
2019-08-17 20:32:41 +00:00
|
|
|
struct QueueTidToPid
|
|
|
|
{
|
|
|
|
uint64_t tid;
|
|
|
|
uint64_t pid;
|
|
|
|
};
|
|
|
|
|
2021-05-19 00:20:35 +00:00
|
|
|
struct QueueHwSample
|
|
|
|
{
|
|
|
|
uint64_t ip;
|
2021-06-04 10:50:55 +00:00
|
|
|
int64_t time;
|
2021-05-19 00:20:35 +00:00
|
|
|
};
|
|
|
|
|
2019-11-05 15:47:41 +00:00
|
|
|
enum class PlotFormatType : uint8_t
|
|
|
|
{
|
|
|
|
Number,
|
|
|
|
Memory,
|
|
|
|
Percentage
|
|
|
|
};
|
|
|
|
|
|
|
|
struct QueuePlotConfig
|
|
|
|
{
|
|
|
|
uint64_t name; // ptr
|
|
|
|
uint8_t type;
|
2022-07-24 11:05:01 +00:00
|
|
|
uint8_t step;
|
|
|
|
uint8_t fill;
|
2022-07-24 11:32:21 +00:00
|
|
|
uint32_t color;
|
2019-11-05 15:47:41 +00:00
|
|
|
};
|
|
|
|
|
2019-11-25 22:59:48 +00:00
|
|
|
struct QueueParamSetup
|
|
|
|
{
|
|
|
|
uint32_t idx;
|
|
|
|
uint64_t name; // ptr
|
|
|
|
uint8_t isBool;
|
|
|
|
int32_t val;
|
|
|
|
};
|
|
|
|
|
2022-10-13 17:00:22 +00:00
|
|
|
struct QueueSourceCodeNotAvailable
|
|
|
|
{
|
|
|
|
uint32_t id;
|
|
|
|
};
|
|
|
|
|
2019-11-29 21:41:41 +00:00
|
|
|
struct QueueCpuTopology
|
|
|
|
{
|
|
|
|
uint32_t package;
|
|
|
|
uint32_t core;
|
|
|
|
uint32_t thread;
|
|
|
|
};
|
|
|
|
|
2021-10-22 20:17:09 +00:00
|
|
|
struct QueueExternalNameMetadata
|
|
|
|
{
|
|
|
|
uint64_t thread;
|
|
|
|
uint64_t name;
|
|
|
|
uint64_t threadName;
|
|
|
|
};
|
|
|
|
|
2021-11-25 21:24:17 +00:00
|
|
|
struct QueueSymbolCodeMetadata
|
|
|
|
{
|
|
|
|
uint64_t symbol;
|
|
|
|
uint64_t ptr;
|
|
|
|
uint32_t size;
|
|
|
|
};
|
|
|
|
|
2022-10-12 22:27:28 +00:00
|
|
|
struct QueueSourceCodeMetadata
|
|
|
|
{
|
|
|
|
uint64_t ptr;
|
|
|
|
uint32_t size;
|
2022-10-13 17:00:22 +00:00
|
|
|
uint32_t id;
|
2022-10-12 22:27:28 +00:00
|
|
|
};
|
|
|
|
|
2017-09-11 22:56:31 +00:00
|
|
|
struct QueueHeader
|
2017-09-10 18:06:52 +00:00
|
|
|
{
|
2017-09-13 23:05:08 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
QueueType type;
|
|
|
|
uint8_t idx;
|
|
|
|
};
|
2017-09-11 22:56:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QueueItem
|
|
|
|
{
|
|
|
|
QueueHeader hdr;
|
2017-09-10 18:06:52 +00:00
|
|
|
union
|
|
|
|
{
|
2019-08-02 18:18:08 +00:00
|
|
|
QueueThreadContext threadCtx;
|
2017-09-10 18:06:52 +00:00
|
|
|
QueueZoneBegin zoneBegin;
|
2020-05-10 17:20:59 +00:00
|
|
|
QueueZoneBeginLean zoneBeginLean;
|
2021-10-09 12:58:33 +00:00
|
|
|
QueueZoneBeginThread zoneBeginThread;
|
2017-09-10 18:06:52 +00:00
|
|
|
QueueZoneEnd zoneEnd;
|
2021-10-09 12:58:33 +00:00
|
|
|
QueueZoneEndThread zoneEndThread;
|
2019-01-14 21:16:14 +00:00
|
|
|
QueueZoneValidation zoneValidation;
|
2021-10-09 13:50:09 +00:00
|
|
|
QueueZoneValidationThread zoneValidationThread;
|
2020-11-27 11:37:35 +00:00
|
|
|
QueueZoneColor zoneColor;
|
2021-10-09 12:58:33 +00:00
|
|
|
QueueZoneColorThread zoneColorThread;
|
2020-05-24 14:13:09 +00:00
|
|
|
QueueZoneValue zoneValue;
|
2021-10-09 12:58:33 +00:00
|
|
|
QueueZoneValueThread zoneValueThread;
|
2017-10-03 14:41:32 +00:00
|
|
|
QueueStringTransfer stringTransfer;
|
|
|
|
QueueFrameMark frameMark;
|
2022-07-30 17:50:42 +00:00
|
|
|
QueueFrameVsync frameVsync;
|
2019-06-06 19:39:54 +00:00
|
|
|
QueueFrameImage frameImage;
|
2020-07-26 12:18:48 +00:00
|
|
|
QueueFrameImageFat frameImageFat;
|
2017-09-26 00:28:14 +00:00
|
|
|
QueueSourceLocation srcloc;
|
2020-07-21 18:09:25 +00:00
|
|
|
QueueZoneTextFat zoneTextFat;
|
2021-10-09 12:58:33 +00:00
|
|
|
QueueZoneTextFatThread zoneTextFatThread;
|
2017-12-10 20:37:39 +00:00
|
|
|
QueueLockAnnounce lockAnnounce;
|
2018-12-16 19:37:48 +00:00
|
|
|
QueueLockTerminate lockTerminate;
|
2017-10-04 14:16:27 +00:00
|
|
|
QueueLockWait lockWait;
|
|
|
|
QueueLockObtain lockObtain;
|
|
|
|
QueueLockRelease lockRelease;
|
2022-07-17 23:56:09 +00:00
|
|
|
QueueLockReleaseShared lockReleaseShared;
|
2017-10-06 14:32:32 +00:00
|
|
|
QueueLockMark lockMark;
|
2020-03-08 12:47:38 +00:00
|
|
|
QueueLockName lockName;
|
2020-07-25 23:22:09 +00:00
|
|
|
QueueLockNameFat lockNameFat;
|
2022-07-24 11:00:36 +00:00
|
|
|
QueuePlotDataInt plotDataInt;
|
|
|
|
QueuePlotDataFloat plotDataFloat;
|
|
|
|
QueuePlotDataDouble plotDataDouble;
|
2017-10-14 11:23:13 +00:00
|
|
|
QueueMessage message;
|
2019-05-10 18:17:44 +00:00
|
|
|
QueueMessageColor messageColor;
|
2020-07-25 23:15:11 +00:00
|
|
|
QueueMessageLiteral messageLiteral;
|
2021-10-10 13:54:21 +00:00
|
|
|
QueueMessageLiteralThread messageLiteralThread;
|
2020-07-25 23:15:11 +00:00
|
|
|
QueueMessageColorLiteral messageColorLiteral;
|
2021-10-10 13:54:21 +00:00
|
|
|
QueueMessageColorLiteralThread messageColorLiteralThread;
|
2020-07-21 18:22:59 +00:00
|
|
|
QueueMessageFat messageFat;
|
2021-10-10 13:54:21 +00:00
|
|
|
QueueMessageFatThread messageFatThread;
|
2020-07-21 18:22:59 +00:00
|
|
|
QueueMessageColorFat messageColorFat;
|
2021-10-10 13:54:21 +00:00
|
|
|
QueueMessageColorFatThread messageColorFatThread;
|
2017-11-11 18:44:09 +00:00
|
|
|
QueueGpuNewContext gpuNewContext;
|
2017-11-11 20:09:48 +00:00
|
|
|
QueueGpuZoneBegin gpuZoneBegin;
|
2021-01-15 19:13:09 +00:00
|
|
|
QueueGpuZoneBeginLean gpuZoneBeginLean;
|
2017-11-11 20:09:48 +00:00
|
|
|
QueueGpuZoneEnd gpuZoneEnd;
|
2017-11-11 21:08:47 +00:00
|
|
|
QueueGpuTime gpuTime;
|
2020-07-07 18:32:25 +00:00
|
|
|
QueueGpuCalibration gpuCalibration;
|
2021-01-31 17:46:42 +00:00
|
|
|
QueueGpuContextName gpuContextName;
|
|
|
|
QueueGpuContextNameFat gpuContextNameFat;
|
2018-03-31 19:56:05 +00:00
|
|
|
QueueMemAlloc memAlloc;
|
|
|
|
QueueMemFree memFree;
|
2020-09-22 16:22:34 +00:00
|
|
|
QueueMemNamePayload memName;
|
2020-07-26 12:15:16 +00:00
|
|
|
QueueCallstackFat callstackFat;
|
2021-10-10 14:14:17 +00:00
|
|
|
QueueCallstackFatThread callstackFatThread;
|
2020-07-26 12:25:32 +00:00
|
|
|
QueueCallstackAllocFat callstackAllocFat;
|
2021-10-10 14:14:17 +00:00
|
|
|
QueueCallstackAllocFatThread callstackAllocFatThread;
|
2020-02-22 12:42:09 +00:00
|
|
|
QueueCallstackSample callstackSample;
|
2020-07-26 12:28:13 +00:00
|
|
|
QueueCallstackSampleFat callstackSampleFat;
|
2019-01-20 18:11:48 +00:00
|
|
|
QueueCallstackFrameSize callstackFrameSize;
|
2021-10-22 20:17:09 +00:00
|
|
|
QueueCallstackFrameSizeFat callstackFrameSizeFat;
|
2018-06-19 23:06:31 +00:00
|
|
|
QueueCallstackFrame callstackFrame;
|
2020-02-27 11:49:48 +00:00
|
|
|
QueueSymbolInformation symbolInformation;
|
2021-10-22 20:17:09 +00:00
|
|
|
QueueSymbolInformationFat symbolInformationFat;
|
2018-08-20 00:07:31 +00:00
|
|
|
QueueCrashReport crashReport;
|
2021-10-10 13:58:24 +00:00
|
|
|
QueueCrashReportThread crashReportThread;
|
2019-02-21 20:59:02 +00:00
|
|
|
QueueSysTime sysTime;
|
2023-03-09 23:23:09 +00:00
|
|
|
QueueSysPower sysPower;
|
2019-08-12 21:05:17 +00:00
|
|
|
QueueContextSwitch contextSwitch;
|
2019-08-17 15:05:29 +00:00
|
|
|
QueueThreadWakeup threadWakeup;
|
2019-08-17 20:32:41 +00:00
|
|
|
QueueTidToPid tidToPid;
|
2021-05-19 00:20:35 +00:00
|
|
|
QueueHwSample hwSample;
|
2019-11-05 15:47:41 +00:00
|
|
|
QueuePlotConfig plotConfig;
|
2019-11-25 22:59:48 +00:00
|
|
|
QueueParamSetup paramSetup;
|
2019-11-29 21:41:41 +00:00
|
|
|
QueueCpuTopology cpuTopology;
|
2021-10-22 20:17:09 +00:00
|
|
|
QueueExternalNameMetadata externalNameMetadata;
|
2021-11-25 21:24:17 +00:00
|
|
|
QueueSymbolCodeMetadata symbolCodeMetadata;
|
2022-10-12 22:27:28 +00:00
|
|
|
QueueSourceCodeMetadata sourceCodeMetadata;
|
2022-10-13 17:00:22 +00:00
|
|
|
QueueSourceCodeNotAvailable sourceCodeNotAvailable;
|
2021-11-01 22:56:19 +00:00
|
|
|
QueueFiberEnter fiberEnter;
|
|
|
|
QueueFiberLeave fiberLeave;
|
2017-09-10 18:06:52 +00:00
|
|
|
};
|
|
|
|
};
|
2022-08-03 04:42:21 +00:00
|
|
|
#pragma pack( pop )
|
2017-09-11 22:28:50 +00:00
|
|
|
|
2019-07-12 16:14:42 +00:00
|
|
|
|
2017-09-10 18:06:52 +00:00
|
|
|
enum { QueueItemSize = sizeof( QueueItem ) };
|
|
|
|
|
2020-01-06 14:16:27 +00:00
|
|
|
static constexpr size_t QueueDataSize[] = {
|
2020-07-25 22:53:55 +00:00
|
|
|
sizeof( QueueHeader ), // zone text
|
|
|
|
sizeof( QueueHeader ), // zone name
|
2017-11-22 01:28:12 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessage ),
|
2019-05-10 18:17:44 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageColor ),
|
2019-11-14 22:40:41 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessage ), // callstack
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageColor ), // callstack
|
2019-07-12 16:14:42 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessage ), // app info
|
2020-07-26 12:35:04 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // allocated source location
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // allocated source location, callstack
|
2020-07-26 12:15:16 +00:00
|
|
|
sizeof( QueueHeader ), // callstack memory
|
|
|
|
sizeof( QueueHeader ), // callstack
|
2020-07-26 12:25:32 +00:00
|
|
|
sizeof( QueueHeader ), // callstack alloc
|
2020-07-26 12:28:13 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCallstackSample ),
|
2021-12-21 13:05:07 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCallstackSample ), // context switch
|
2020-07-26 12:18:48 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFrameImage ),
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // callstack
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneEnd ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockWait ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockObtain ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockRelease ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockWait ), // shared
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockObtain ), // shared
|
2022-07-17 23:56:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockReleaseShared ),
|
2020-03-08 12:47:38 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockName ),
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemAlloc ),
|
2020-09-22 16:22:34 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemAlloc ), // named
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemFree ),
|
2020-09-22 16:22:34 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemFree ), // named
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemAlloc ), // callstack
|
2020-09-22 16:22:34 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemAlloc ), // callstack, named
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemFree ), // callstack
|
2020-09-22 16:22:34 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemFree ), // callstack, named
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBegin ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBegin ), // callstack
|
2021-01-15 19:13:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBeginLean ),// allocated source location
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBeginLean ),// allocated source location, callstack
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneEnd ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBegin ), // serial
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBegin ), // serial, callstack
|
2021-01-15 19:13:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBeginLean ),// serial, allocated source location
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneBeginLean ),// serial, allocated source location, callstack
|
2019-10-23 22:04:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuZoneEnd ), // serial
|
2022-07-24 11:00:36 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueuePlotDataInt ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueuePlotDataFloat ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueuePlotDataDouble ),
|
2019-10-25 17:13:11 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueContextSwitch ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueThreadWakeup ),
|
2019-10-25 17:52:01 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuTime ),
|
2021-01-31 17:46:42 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuContextName ),
|
2021-10-22 20:25:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCallstackFrameSize ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueSymbolInformation ),
|
2021-11-01 22:56:19 +00:00
|
|
|
sizeof( QueueHeader ), // ExternalNameMetadata - not for wire transfer
|
2021-11-25 21:24:17 +00:00
|
|
|
sizeof( QueueHeader ), // SymbolCodeMetadata - not for wire transfer
|
2022-10-12 22:27:28 +00:00
|
|
|
sizeof( QueueHeader ), // SourceCodeMetadata - not for wire transfer
|
2021-11-01 22:56:19 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFiberEnter ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFiberLeave ),
|
2017-11-22 01:28:12 +00:00
|
|
|
// above items must be first
|
2017-10-18 16:48:51 +00:00
|
|
|
sizeof( QueueHeader ), // terminate
|
2018-07-10 19:23:19 +00:00
|
|
|
sizeof( QueueHeader ), // keep alive
|
2019-08-02 18:18:08 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueThreadContext ),
|
2020-07-07 18:32:25 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuCalibration ),
|
2018-08-19 23:03:16 +00:00
|
|
|
sizeof( QueueHeader ), // crash
|
2018-08-20 00:07:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCrashReport ),
|
2019-01-14 21:16:14 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneValidation ),
|
2020-11-27 11:37:35 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneColor ),
|
2020-05-24 14:13:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueZoneValue ),
|
2018-08-05 00:09:59 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // continuous frames
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // start
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // end
|
2022-07-30 17:50:42 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueFrameVsync ),
|
2017-09-26 00:28:14 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueSourceLocation ),
|
2017-12-10 20:37:39 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockAnnounce ),
|
2018-12-16 19:37:48 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockTerminate ),
|
2017-10-06 14:32:32 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueLockMark ),
|
2020-07-25 23:15:11 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageLiteral ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageColorLiteral ),
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageLiteral ), // callstack
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMessageColorLiteral ), // callstack
|
2017-11-11 18:44:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueGpuNewContext ),
|
2018-06-19 23:06:31 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCallstackFrame ),
|
2019-02-21 20:59:02 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueSysTime ),
|
2023-03-09 23:23:09 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueSysPower ),
|
2019-08-17 20:32:41 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueTidToPid ),
|
2021-05-19 00:20:35 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // cpu cycle
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // instruction retired
|
2021-05-20 00:15:06 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // cache reference
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // cache miss
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // branch retired
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueHwSample ), // branch miss
|
2019-11-05 15:47:41 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueuePlotConfig ),
|
2019-11-25 22:59:48 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueParamSetup ),
|
2021-02-03 20:47:03 +00:00
|
|
|
sizeof( QueueHeader ), // server query acknowledgement
|
2022-10-13 17:00:22 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueSourceCodeNotAvailable ),
|
2021-11-25 21:44:56 +00:00
|
|
|
sizeof( QueueHeader ), // symbol code not available
|
2019-11-29 21:41:41 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueCpuTopology ),
|
2020-07-25 21:13:01 +00:00
|
|
|
sizeof( QueueHeader ), // single string data
|
2020-07-25 23:32:49 +00:00
|
|
|
sizeof( QueueHeader ), // second string data
|
2020-09-22 16:22:34 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueMemNamePayload ),
|
2017-11-19 01:42:04 +00:00
|
|
|
// keep all QueueStringTransfer below
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // string data
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // thread name
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // plot name
|
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // allocated source location payload
|
2018-06-19 17:09:43 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // callstack payload
|
2019-02-28 19:30:07 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // callstack alloc payload
|
2018-08-04 18:48:21 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // frame name
|
2019-06-06 19:39:54 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // frame image data
|
2019-08-16 17:22:23 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // external name
|
2019-08-16 17:49:16 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // external thread name
|
2020-03-25 19:04:55 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // symbol code
|
2021-02-03 23:03:25 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // source code
|
2021-11-03 17:57:30 +00:00
|
|
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // fiber name
|
2017-09-11 23:14:04 +00:00
|
|
|
};
|
|
|
|
|
2017-10-13 18:05:38 +00:00
|
|
|
static_assert( QueueItemSize == 32, "Queue item size not 32 bytes" );
|
2017-09-11 23:14:04 +00:00
|
|
|
static_assert( sizeof( QueueDataSize ) / sizeof( size_t ) == (uint8_t)QueueType::NUM_TYPES, "QueueDataSize mismatch" );
|
2017-09-12 23:24:42 +00:00
|
|
|
static_assert( sizeof( void* ) <= sizeof( uint64_t ), "Pointer size > 8 bytes" );
|
2018-06-19 15:51:55 +00:00
|
|
|
static_assert( sizeof( void* ) == sizeof( uintptr_t ), "Pointer size != uintptr_t" );
|
2017-09-11 23:14:04 +00:00
|
|
|
|
2020-05-10 13:32:39 +00:00
|
|
|
}
|
2017-09-10 18:06:52 +00:00
|
|
|
|
|
|
|
#endif
|