tracy/client/TracyQueue.hpp

44 lines
524 B
C++
Raw Normal View History

2017-09-10 18:06:52 +00:00
#ifndef __TRACYQUEUE_HPP__
#define __TRACYQUEUE_HPP__
#include <stdint.h>
namespace tracy
{
enum class QueueType : uint8_t
{
ZoneBegin,
ZoneEnd
};
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;
};
};
enum { QueueItemSize = sizeof( QueueItem ) };
};
#endif