| 1162 | // the arg_values must live throughout these procedures. |
| 1163 | |
| 1164 | static inline kudu::debug::TraceEventHandle |
| 1165 | AddTraceEventWithThreadIdAndTimestamp( |
| 1166 | char phase, |
| 1167 | const unsigned char* category_group_enabled, |
| 1168 | const char* name, |
| 1169 | uint64_t id, |
| 1170 | int thread_id, |
| 1171 | const MicrosecondsInt64& timestamp, |
| 1172 | unsigned char flags, |
| 1173 | const char* arg1_name, |
| 1174 | const scoped_refptr<kudu::debug::ConvertableToTraceFormat>& arg1_val) { |
| 1175 | const int num_args = 1; |
| 1176 | unsigned char arg_types[1] = { TRACE_VALUE_TYPE_CONVERTABLE }; |
| 1177 | return TRACE_EVENT_API_ADD_TRACE_EVENT_WITH_THREAD_ID_AND_TIMESTAMP( |
| 1178 | phase, category_group_enabled, name, id, thread_id, timestamp, |
| 1179 | num_args, &arg1_name, arg_types, NULL, &arg1_val, flags); |
| 1180 | } |
| 1181 | |
| 1182 | template<class ARG1_TYPE> |
| 1183 | static inline kudu::debug::TraceEventHandle |
no test coverage detected