mirror of
https://github.com/wolfpld/tracy
synced 2025-05-05 06:33:52 +00:00
Add event queue structures.
This commit is contained in:
parent
ea9464f4f6
commit
fc1b131c7a
43
client/TracyQueue.hpp
Executable file
43
client/TracyQueue.hpp
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#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
|
Loading…
x
Reference in New Issue
Block a user