}
message Event {
- required uint64 ts = 1; // Timestamp in ns relative to time of creation of event trace data structure
+ required int64 ts = 1; // Timestamp in ns relative to time of creation of event trace data structure
required EventType event = 2; // Type of event
required bool start = 3; // true for "start" events, false for "completed" events
optional bool boolVal = 4; // Below are optional values associated with events
struct Entry
{
- Entry(Value_t& v, EventType e, bool start, uint64_t ts) :
+ Entry(Value_t& v, EventType e, bool start, int64_t ts) :
d_value(v), d_ts(ts), d_event(e), d_start(start)
{
}
Value_t d_value;
- uint64_t d_ts;
+ int64_t d_ts;
EventType d_event;
bool d_start;
}
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
- uint64_t stamp = ts.tv_nsec + ts.tv_sec * 1000000000;
+ int64_t stamp = ts.tv_nsec + ts.tv_sec * 1000000000;
stamp -= d_base;
d_events.emplace_back(v, e, start, stamp);
}
private:
std::vector<Entry> d_events;
- uint64_t d_base;
+ int64_t d_base;
enum Status
{
Disabled,