mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
48 lines
559 B
C++
Executable File
48 lines
559 B
C++
Executable File
#ifndef __TRACYQUEUE_HPP__
|
|
#define __TRACYQUEUE_HPP__
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
enum class QueueType : uint8_t
|
|
{
|
|
ZoneBegin,
|
|
ZoneEnd
|
|
};
|
|
|
|
#pragma pack( 1 )
|
|
|
|
struct QueueZoneBegin
|
|
{
|
|
uint64_t id;
|
|
const char* filename;
|
|
const char* function;
|
|
uint32_t line;
|
|
};
|
|
|
|
struct QueueZoneEnd
|
|
{
|
|
uint64_t id;
|
|
};
|
|
|
|
struct QueueItem
|
|
{
|
|
QueueType type;
|
|
int64_t time;
|
|
union
|
|
{
|
|
QueueZoneBegin zoneBegin;
|
|
QueueZoneEnd zoneEnd;
|
|
};
|
|
};
|
|
|
|
#pragma pack()
|
|
|
|
enum { QueueItemSize = sizeof( QueueItem ) };
|
|
|
|
};
|
|
|
|
#endif
|