1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 13:43:52 +00:00
tracy/server/TracyEvent.hpp
Bartosz Taudul 7424077d70 Store source location in a single object.
Source file, function name and line number are now stored in a const
static container object. This has the following benefits:
- Slightly lighter profiling workload (3 instructions less).
- Profiling queue event size is significantly reduced, by 12 bytes. This
  has an effect on all queue event types.
- Source location grouping has now no cost, as it's performed at the
  compilation stage. This allows simplification of server code.
The downside is that the full source location resolution is now
performed in two steps, as the server has to query both source location
container and strings contained within. This has almost no real impact
on profiler operation.
2017-09-26 02:39:08 +02:00

25 lines
293 B
C++
Executable File

#ifndef __TRACYEVENT_HPP__
#define __TRACYEVENT_HPP__
#include "TracyVector.hpp"
namespace tracy
{
struct Event
{
int64_t start;
int64_t end;
uint64_t srcloc;
uint32_t color;
Event* parent;
Vector<Event*> child;
};
enum { EventSize = sizeof( Event ) };
}
#endif