Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Adding wire_id accessor.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed May 12, 2016
1 parent b0f1dfe commit d6fd54b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/cpp/include/wtf/event.h
Expand Up @@ -288,6 +288,9 @@ class EventIf {
: EventIf(EventDefinition::NextEventId(), event_class, flags, name_spec) {
}

// ID of the event in the trace buffer.
inline int wire_id() const { return wire_id_; }

// Invokes the event with a specific EventBuffer.
void InvokeSpecific(EventBuffer* event_buffer, ArgTypes... args) {
const size_t kSlotCount = kEventPrefixSlotCount + kArgSlotCount;
Expand Down

0 comments on commit d6fd54b

Please sign in to comment.