tracy/server/TracyTimelineDraw.hpp

71 lines
957 B
C++
Raw Normal View History

#ifndef __TRACYTIMELINEDRAW_HPP__
#define __TRACYTIMELINEDRAW_HPP__
#include <stdint.h>
#include "TracyEvent.hpp"
#include "TracyShortPtr.hpp"
namespace tracy
{
enum class TimelineDrawType : uint8_t
{
Folded,
Zone,
GhostFolded,
Ghost
};
struct TimelineDraw
{
TimelineDrawType type;
uint16_t depth;
short_ptr<void*> ev;
Int48 rend;
2023-03-22 23:17:55 +00:00
uint32_t num;
};
2023-03-22 18:38:36 +00:00
enum class ContextSwitchDrawType : uint8_t
{
Waiting,
FoldedOne,
FoldedMulti,
Running
};
struct ContextSwitchDrawFolded
{
Int48 rend;
int num;
};
struct ContextSwitchDrawWaiting
{
short_ptr<ContextSwitchData> prev;
2023-03-22 20:55:02 +00:00
uint32_t waitStack;
2023-03-22 18:38:36 +00:00
};
struct ContextSwitchDraw
{
ContextSwitchDrawType type;
short_ptr<ContextSwitchData> ev;
float minpx;
union
{
ContextSwitchDrawFolded folded;
ContextSwitchDrawWaiting waiting;
};
};
2023-03-22 21:07:36 +00:00
struct SamplesDraw
{
uint32_t num;
2023-03-22 22:36:13 +00:00
uint32_t idx;
2023-03-22 21:07:36 +00:00
};
}
#endif