Lines Matching defs:packet
113 auto packet = ctx.NewTracePacket();
114 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME);
115 packet->set_timestamp(perfetto::base::GetBootTimeNs().count());
116 packet->Finalize();
273 auto packet = ctx.NewTracePacket();
274 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME);
275 packet->set_timestamp(descriptor_timestamp);
276 packet->set_sequence_flags(TracePacket::SEQ_INCREMENTAL_STATE_CLEARED);
282 auto packet = ctx.NewTracePacket();
283 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME);
284 packet->set_timestamp(descriptor_timestamp);
285 auto event = packet->set_gpu_counter_event();
295 auto packet = ctx.NewTracePacket();
296 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME);
297 packet->set_timestamp(descriptor_timestamp);
299 auto event = packet->set_clock_snapshot();
303 // Capture GPU timestamp of the first packet. Anything prior to this can
329 auto packet = ctx.NewTracePacket();
330 packet->set_timestamp_clock_id(driver->gpu_clock_id());
331 packet->set_timestamp(gpu_timestamp);
333 auto event = packet->set_gpu_counter_event();
342 auto packet = ctx.NewTracePacket();
343 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME);
344 packet->set_timestamp(cpu_ts);
345 auto event = packet->set_clock_snapshot();