Home
last modified time | relevance | path

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

12

/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
185 return ExtractSystrace(tp.get(), trace_writer.get(), in TraceToSystrace()
190 TraceWriter* trace_writer, in ExtractSystrace() argument
195 QueryWriter q_writer(tp, trace_writer); in ExtractSystrace()
197 trace_writer->Write(kProcessDumpHeader); in ExtractSystrace()
215 trace_writer->Write(kThreadHeader); in ExtractSystrace()
233 trace_writer->Write("\",\n"); in ExtractSystrace()
234 trace_writer->Write(kSystemTraceEvents); in ExtractSystrace()
[all …]
Dtrace_to_json.cc84 std::unique_ptr<TraceWriter> trace_writer( in TraceToJson() local
97 if (ExportUserspaceEvents(tp.get(), trace_writer.get())) { in TraceToJson()
98 trace_writer->Write(",\n"); in TraceToJson()
100 trace_writer->Write(kTraceHeader); in TraceToJson()
103 int ret = ExtractSystrace(tp.get(), trace_writer.get(), in TraceToJson()
108 trace_writer->Write(kTraceFooter); in TraceToJson()
/external/perfetto/src/tracing/internal/
Dtrack_event_internal.cc272 void TrackEventInternal::ResetIncrementalState(TraceWriterBase* trace_writer, in ResetIncrementalState() argument
279 trace_writer, timestamp, in ResetIncrementalState()
291 WriteTrackDescriptor(default_track, trace_writer); in ResetIncrementalState()
295 WriteTrackDescriptor(ProcessTrack::Current(), trace_writer); in ResetIncrementalState()
300 TrackEventInternal::NewTracePacket(TraceWriterBase* trace_writer, in NewTracePacket() argument
303 auto packet = trace_writer->NewTracePacket(); in NewTracePacket()
315 TraceWriterBase* trace_writer, in WriteEvent() argument
325 ResetIncrementalState(trace_writer, timestamp); in WriteEvent()
327 auto packet = NewTracePacket(trace_writer, timestamp); in WriteEvent()
/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/v8/src/libplatform/tracing/
Dtrace-buffer.cc12 TraceWriter* trace_writer) in TraceBufferRingBuffer() argument
14 trace_writer_.reset(trace_writer); in TraceBufferRingBuffer()
101 size_t max_chunks, TraceWriter* trace_writer) { in CreateTraceBufferRingBuffer() argument
102 return new TraceBufferRingBuffer(max_chunks, trace_writer); in CreateTraceBufferRingBuffer()
Dtrace-buffer.h21 TraceBufferRingBuffer(size_t max_chunks, TraceWriter* trace_writer);
/external/perfetto/include/perfetto/tracing/internal/
Dtrack_event_internal.h132 TraceWriterBase* trace_writer, in WriteTrackDescriptorIfNeeded() argument
137 WriteTrackDescriptor(track, trace_writer); in WriteTrackDescriptorIfNeeded()
143 TraceWriterBase* trace_writer) { in WriteTrackDescriptor() argument
145 track, NewTracePacket(trace_writer, GetTimeNs())); in WriteTrackDescriptor()
Ddata_source_internal.h131 trace_writer.reset(); in Reset()
137 std::unique_ptr<TraceWriterBase> trace_writer; member
Dtrack_event_data_source.h433 track, ctx.tls_inst_->trace_writer.get()); in SetTrackDescriptor()
520 ctx.tls_inst_->trace_writer.get(), ctx.GetIncrementalState(),
538 track, ctx.tls_inst_->trace_writer.get(),
565 track, ctx.tls_inst_->trace_writer.get()); in SetTrackDescriptorImpl()
/external/perfetto/include/perfetto/tracing/
Ddata_source.h178 return tls_inst_->trace_writer->NewTracePacket(); in NewTracePacket()
196 tls_inst_->trace_writer->Flush(cb);
202 uint64_t written() { return tls_inst_->trace_writer->written(); } in written()
353 if (PERFETTO_UNLIKELY(!tls_inst.trace_writer)) { in TraceWithInstances()
364 tls_inst.trace_writer = tracing_impl->CreateTraceWriter( in TraceWithInstances()
373 assert(tls_inst.trace_writer); in TraceWithInstances()
/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/profiling/memory/
Dbookkeeping_dump.h42 TraceWriter* trace_writer, in DumpState() argument
46 : trace_writer_(trace_writer), in DumpState()
Dheapprofd_producer.cc354 auto trace_writer = endpoint_->CreateTraceWriter(buffer_id); in SetupDataSource() local
355 auto trace_packet = trace_writer->NewTracePacket(); in SetupDataSource()
363 trace_writer->Flush(); in SetupDataSource()
395 data_source.trace_writer.get()); in SetupDataSource()
549 auto trace_packet = data_source->trace_writer->NewTracePacket(); in ShutdownDataSource()
640 DumpState dump_state(data_source->trace_writer.get(), in DumpProcessState()
722 data_source.trace_writer->Flush(std::move(callback)); in Flush()
1026 ds->trace_writer->Flush([weak_producer, ds_id, was_stopped] { in MaybeFinishDataSource()
Dheapprofd_producer.h193 DataSource(std::unique_ptr<TraceWriter> tw) : trace_writer(std::move(tw)) {} in DataSource()
196 std::unique_ptr<TraceWriter> trace_writer; member
/external/perfetto/src/profiling/perf/
Dperf_producer.h126 trace_writer(std::move(_trace_writer)), in DataSourceState()
131 std::unique_ptr<TraceWriter> trace_writer; member
Dperf_producer.cc237 ds_it->second.trace_writer.get()); in StartDataSource()
326 InterningOutputTracker::WriteFixedInterningsPacket(ds.trace_writer.get()); in ClearIncrementalState()
579 auto packet = ds.trace_writer->NewTracePacket(); in EmitSample()
614 auto packet = ds.trace_writer->NewTracePacket(); in EmitRingBufferLoss()
648 auto packet = ds.trace_writer->NewTracePacket(); in EmitSkippedSample()
698 ds.trace_writer->Flush(); in FinishDataSourceStop()
/external/perfetto/src/profiling/common/
Dinterning_output.cc36 TraceWriter* trace_writer) { in WriteFixedInterningsPacket() argument
40 auto packet = trace_writer->NewTracePacket(); in WriteFixedInterningsPacket()
Dinterning_output.h38 static void WriteFixedInterningsPacket(TraceWriter* trace_writer);
/external/perfetto/src/traced/probes/ftrace/
Dcpu_reader.cc263 data_source->trace_writer(), data_source->mutable_metadata(), cpu_, in ReadAndProcessBatch()
273 TraceWriter* trace_writer, in ProcessPagesForDataSource() argument
283 auto packet = trace_writer->NewTracePacket(); in ProcessPagesForDataSource()
323 packet = trace_writer->NewTracePacket(); in ProcessPagesForDataSource()
Dftrace_data_source.h84 TraceWriter* trace_writer() { return writer_.get(); } in trace_writer() function
Dcpu_reader.h216 static bool ProcessPagesForDataSource(TraceWriter* trace_writer,
Dcpu_reader_unittest.cc1166 TraceWriterForTesting trace_writer; in TEST() local
1167 CpuReader::ProcessPagesForDataSource(&trace_writer, &metadata, /*cpu=*/1, in TEST()
1174 auto packets = trace_writer.GetAllTracePackets(); in TEST()
/external/perfetto/include/perfetto/ext/tracing/core/
DBUILD.gn33 "trace_writer.h",
/external/v8/include/libplatform/
Dv8-tracing.h170 TraceWriter* trace_writer);
/external/perfetto/docs/design-docs/
Dlife-of-a-tracing-session.md32 [`TraceWriter`](/include/perfetto/ext/tracing/core/trace_writer.h) (typically

12