30 #include <type_traits> 32 #include "phosphor/platform/core.h" 38 constexpr
auto arg_count = 2;
70 std::array<TraceArgument, arg_count>&& _args,
71 std::array<TraceArgument::Type, arg_count>&& _arg_types);
78 std::string to_string()
const;
85 std::string to_json()
const;
92 static const char* typeToString(
Type type);
97 const char* getName()
const;
102 const char* getCategory()
const;
107 Type getType()
const;
112 uint64_t getThreadID()
const;
117 const std::array<TraceArgument, arg_count>& getArgs()
const;
122 const std::array<TraceArgument::Type, arg_count>& getArgTypes()
const;
127 const std::array<const char*, arg_count>& getArgNames()
const;
133 int64_t getTime()
const;
154 std::array<TraceArgument, arg_count> args;
158 std::array<TraceArgument::Type, arg_count> arg_types;
175 std::ostream& operator<<(std::ostream& os,
const TraceEvent& trace_event);
179 "TraceEvent should fit inside a cache-line for performance reasons");
Definition: trace_event.h:136
Definition: tracepoint_info.h:31
Definition: trace_event.h:40
Type
Definition: trace_event.h:45
Definition: category_registry.h:32