Home
last modified time | relevance | path

Searched refs:trace_writer (Results 1 – 25 of 25) sorted by relevance

/external/perfetto/tools/trace_to_text/
Dtrace_to_systrace.cc117 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 …]
Dtrace_to_json.cc84 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/
Dend_to_end_shared_memory_fuzzer.cc82 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/
Dtrack_event_internal.cc311 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()
Dtracing_muxer_impl.cc1129 if (!ds_tls.trace_writer) in DestroyStoppedTraceWritersForCurrentThread()
/external/perfetto/include/perfetto/tracing/internal/
Dtrack_event_internal.h161 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()
Dtrack_event_data_source.h359 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());
Ddata_source_internal.h151 trace_writer.reset(); in Reset()
161 std::unique_ptr<TraceWriterBase> trace_writer; member
/external/perfetto/include/perfetto/tracing/
Ddata_source.h184 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/
Dperf_producer.cc83 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 …]
Dperf_producer.h129 trace_writer(std::move(_trace_writer)), in DataSourceState()
134 std::unique_ptr<TraceWriter> trace_writer; member
/external/perfetto/src/tracing/core/
Dmetatrace_writer.cc39 std::unique_ptr<TraceWriter> trace_writer, in Enable() argument
47 trace_writer_ = std::move(trace_writer); in Enable()
/external/perfetto/src/tracing/test/
Dplatform_unittest.cc82 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/
Dbookkeeping_dump.h42 TraceWriter* trace_writer, in DumpState() argument
46 : trace_writer_(trace_writer), in DumpState()
Dheapprofd_producer.cc375 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()
Dheapprofd_producer.h221 : trace_writer(std::move(tw)) { in DataSource()
227 std::unique_ptr<TraceWriter> trace_writer; member
/external/perfetto/src/profiling/common/
Dinterning_output.cc36 TraceWriter* trace_writer, in WriteFixedInterningsPacket() argument
41 auto packet = trace_writer->NewTracePacket(); in WriteFixedInterningsPacket()
Dinterning_output.h37 static void WriteFixedInterningsPacket(TraceWriter* trace_writer,
/external/perfetto/src/traced/probes/ftrace/
Dftrace_data_source.h84 TraceWriter* trace_writer() { return writer_.get(); } in trace_writer() function
Dcpu_reader.cc277 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()
Dcpu_reader.h235 static bool ProcessPagesForDataSource(TraceWriter* trace_writer,
Dcpu_reader_unittest.cc1183 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/
DBUILD.gn33 "trace_writer.h",
/external/perfetto/docs/design-docs/
Dlife-of-a-tracing-session.md32 [`TraceWriter`](/include/perfetto/ext/tracing/core/trace_writer.h) (typically
/external/perfetto/
DBUILD409 "include/perfetto/ext/tracing/core/trace_writer.h",