/external/perfetto/tools/trace_to_text/ |
D | trace_to_systrace.cc | 117 QueryWriter(trace_processor::TraceProcessor* tp, TraceWriter* trace_writer) in QueryWriter() argument 121 trace_writer_(trace_writer) {} in QueryWriter() 170 std::unique_ptr<TraceWriter> trace_writer( in TraceToSystrace() local 187 return ExtractSystrace(tp.get(), trace_writer.get(), in TraceToSystrace() 192 TraceWriter* trace_writer, in ExtractSystrace() argument 197 QueryWriter q_writer(tp, trace_writer); in ExtractSystrace() 199 trace_writer->Write(kProcessDumpHeader); in ExtractSystrace() 217 trace_writer->Write(kThreadHeader); in ExtractSystrace() 235 trace_writer->Write("\",\n"); in ExtractSystrace() 236 trace_writer->Write(kSystemTraceEvents); in ExtractSystrace() [all …]
|
D | trace_to_json.cc | 84 std::unique_ptr<TraceWriter> trace_writer( in TraceToJson() local 99 if (ExportUserspaceEvents(tp.get(), trace_writer.get())) { in TraceToJson() 100 trace_writer->Write(",\n"); in TraceToJson() 102 trace_writer->Write(kTraceHeader); in TraceToJson() 105 int ret = ExtractSystrace(tp.get(), trace_writer.get(), in TraceToJson() 110 trace_writer->Write(kTraceFooter); in TraceToJson()
|
/external/perfetto/test/ |
D | end_to_end_shared_memory_fuzzer.cc | 82 auto trace_writer = endpoint_->CreateTraceWriter( in StartDataSource() local 85 auto packet = trace_writer->NewTracePacket(); in StartDataSource() 88 trace_writer->Flush(); in StartDataSource() 91 auto end_packet = trace_writer->NewTracePacket(); in StartDataSource() 94 trace_writer->Flush(on_produced_and_committed_); in StartDataSource()
|
/external/perfetto/src/tracing/internal/ |
D | track_event_internal.cc | 311 void TrackEventInternal::ResetIncrementalState(TraceWriterBase* trace_writer, in ResetIncrementalState() argument 318 trace_writer, timestamp, in ResetIncrementalState() 330 WriteTrackDescriptor(default_track, trace_writer); in ResetIncrementalState() 334 WriteTrackDescriptor(ProcessTrack::Current(), trace_writer); in ResetIncrementalState() 339 TrackEventInternal::NewTracePacket(TraceWriterBase* trace_writer, in NewTracePacket() argument 342 auto packet = trace_writer->NewTracePacket(); in NewTracePacket() 354 TraceWriterBase* trace_writer, in WriteEvent() argument 363 auto packet = NewTracePacket(trace_writer, timestamp); in WriteEvent()
|
D | tracing_muxer_impl.cc | 1129 if (!ds_tls.trace_writer) in DestroyStoppedTraceWritersForCurrentThread()
|
/external/perfetto/include/perfetto/tracing/internal/ |
D | track_event_internal.h | 161 TraceWriterBase* trace_writer, in WriteTrackDescriptorIfNeeded() argument 166 WriteTrackDescriptor(track, trace_writer); in WriteTrackDescriptorIfNeeded() 172 TraceWriterBase* trace_writer) { in WriteTrackDescriptor() argument 174 track, NewTracePacket(trace_writer, GetTimeNs())); in WriteTrackDescriptor()
|
D | track_event_data_source.h | 359 track, ctx.tls_inst_->trace_writer.get()); 450 TraceWriterBase* trace_writer = ctx.tls_inst_->trace_writer.get(); 455 trace_writer, trace_timestamp.nanoseconds); 461 track, trace_writer, incr_state); 467 trace_writer, incr_state, static_category, event_name, type, 515 track, ctx.tls_inst_->trace_writer.get());
|
D | data_source_internal.h | 151 trace_writer.reset(); in Reset() 161 std::unique_ptr<TraceWriterBase> trace_writer; member
|
/external/perfetto/include/perfetto/tracing/ |
D | data_source.h | 184 return tls_inst_->trace_writer->NewTracePacket(); in NewTracePacket() 202 tls_inst_->trace_writer->Flush(cb); 208 uint64_t written() { return tls_inst_->trace_writer->written(); } in written() 381 if (PERFETTO_UNLIKELY(!tls_inst.trace_writer)) { 396 tls_inst.trace_writer = tracing_impl->CreateTraceWriter( 403 assert(tls_inst.trace_writer);
|
/external/perfetto/src/profiling/perf/ |
D | perf_producer.cc | 83 TraceWriter::TracePacketHandle StartTracePacket(TraceWriter* trace_writer) { in StartTracePacket() argument 84 auto packet = trace_writer->NewTracePacket(); in StartTracePacket() 91 TraceWriter* trace_writer) { in WritePerfEventDefaultsPacket() argument 92 auto packet = trace_writer->NewTracePacket(); in WritePerfEventDefaultsPacket() 324 WritePerfEventDefaultsPacket(ds.event_config, ds.trace_writer.get()); in StartDataSource() 327 ds_it->second.trace_writer.get(), in StartDataSource() 454 WritePerfEventDefaultsPacket(ds.event_config, ds.trace_writer.get()); in ClearIncrementalState() 459 ds.trace_writer.get(), in ClearIncrementalState() 752 auto packet = StartTracePacket(ds.trace_writer.get()); in EmitSample() 789 auto packet = StartTracePacket(ds.trace_writer.get()); in EmitRingBufferLoss() [all …]
|
D | perf_producer.h | 129 trace_writer(std::move(_trace_writer)), in DataSourceState() 134 std::unique_ptr<TraceWriter> trace_writer; member
|
/external/perfetto/src/tracing/core/ |
D | metatrace_writer.cc | 39 std::unique_ptr<TraceWriter> trace_writer, in Enable() argument 47 trace_writer_ = std::move(trace_writer); in Enable()
|
/external/perfetto/src/tracing/test/ |
D | platform_unittest.cc | 82 GetTLS()->data_sources_tls[0].per_instance[0].trace_writer = std::move(tw); in TEST() 93 GetTLS()->data_sources_tls[0].per_instance[0].trace_writer = std::move(tw); in TEST()
|
/external/perfetto/src/profiling/memory/ |
D | bookkeeping_dump.h | 42 TraceWriter* trace_writer, in DumpState() argument 46 : trace_writer_(trace_writer), in DumpState()
|
D | heapprofd_producer.cc | 375 auto trace_writer = endpoint_->CreateTraceWriter(buffer_id); in WriteRejectedConcurrentSession() local 376 auto trace_packet = trace_writer->NewTracePacket(); in WriteRejectedConcurrentSession() 384 trace_writer->Flush(); in WriteRejectedConcurrentSession() 474 data_source.trace_writer.get(), in SetupDataSource() 617 auto trace_packet = data_source->trace_writer->NewTracePacket(); in ShutdownDataSource() 736 DumpState dump_state(data_source->trace_writer.get(), in DumpProcessState() 790 data_source.trace_writer->Flush(std::move(callback)); in Flush() 1054 auto packet = ds.trace_writer->NewTracePacket(); in HandleAllocRecord() 1118 auto packet = ds.trace_writer->NewTracePacket(); in HandleFreeRecord() 1186 ds->trace_writer->Flush([weak_producer, exit_when_done, ds_id, was_stopped] { in MaybeFinishDataSource()
|
D | heapprofd_producer.h | 221 : trace_writer(std::move(tw)) { in DataSource() 227 std::unique_ptr<TraceWriter> trace_writer; member
|
/external/perfetto/src/profiling/common/ |
D | interning_output.cc | 36 TraceWriter* trace_writer, in WriteFixedInterningsPacket() argument 41 auto packet = trace_writer->NewTracePacket(); in WriteFixedInterningsPacket()
|
D | interning_output.h | 37 static void WriteFixedInterningsPacket(TraceWriter* trace_writer,
|
/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_data_source.h | 84 TraceWriter* trace_writer() { return writer_.get(); } in trace_writer() function
|
D | cpu_reader.cc | 277 data_source->trace_writer(), data_source->mutable_metadata(), cpu_, in ReadAndProcessBatch() 288 TraceWriter* trace_writer, in ProcessPagesForDataSource() argument 375 packet = trace_writer->NewTracePacket(); in ProcessPagesForDataSource()
|
D | cpu_reader.h | 235 static bool ProcessPagesForDataSource(TraceWriter* trace_writer,
|
D | cpu_reader_unittest.cc | 1183 TraceWriterForTesting trace_writer; in TEST() local 1184 CpuReader::ProcessPagesForDataSource(&trace_writer, &metadata, /*cpu=*/1, in TEST() 1192 auto packets = trace_writer.GetAllTracePackets(); in TEST()
|
/external/perfetto/include/perfetto/ext/tracing/core/ |
D | BUILD.gn | 33 "trace_writer.h",
|
/external/perfetto/docs/design-docs/ |
D | life-of-a-tracing-session.md | 32 [`TraceWriter`](/include/perfetto/ext/tracing/core/trace_writer.h) (typically
|
/external/perfetto/ |
D | BUILD | 409 "include/perfetto/ext/tracing/core/trace_writer.h",
|