Home
last modified time | relevance | path

Searched refs:tracing_session (Results 1 – 8 of 8) sorted by relevance

/external/perfetto/src/tracing/core/
Dtracing_service_impl.cc495 TracingSession* tracing_session; in DetachConsumer() local
496 if (!tsid || !(tracing_session = GetTracingSession(tsid))) in DetachConsumer()
505 PERFETTO_DCHECK(tracing_session->consumer_maybe_null == consumer); in DetachConsumer()
506 tracing_session->consumer_maybe_null = nullptr; in DetachConsumer()
507 tracing_session->detach_key = key; in DetachConsumer()
527 auto* tracing_session = GetDetachedSession(consumer->uid_, key); in AttachConsumer() local
528 if (!tracing_session) { in AttachConsumer()
535 consumer->tracing_session_id_ = tracing_session->id; in AttachConsumer()
536 tracing_session->consumer_maybe_null = consumer; in AttachConsumer()
537 tracing_session->detach_key.clear(); in AttachConsumer()
[all …]
Dtracing_service_impl_unittest.cc135 TracingServiceImpl::TracingSession* tracing_session() { in tracing_session() function in perfetto::TracingServiceImplTest
157 return tracing_session()->pending_flushes.size(); in GetNumPendingFlushes()
161 tracing_session()->should_emit_sync_marker = true; in WaitForNextSyncMarker()
163 while (tracing_session()->should_emit_sync_marker) { in WaitForNextSyncMarker()
190 for (const auto& kv : tracing_session()->data_source_instances) { in GetDataSourceInstanceState()
376 ASSERT_EQ(1u, tracing_session()->received_triggers.size()); in TEST_F()
378 tracing_session()->received_triggers[0].trigger_name); in TEST_F()
787 ASSERT_EQ(1u, tracing_session()->received_triggers.size()); in TEST_F()
789 tracing_session()->received_triggers[0].trigger_name); in TEST_F()
860 ASSERT_EQ(2u, tracing_session()->received_triggers.size()); in TEST_F()
[all …]
/external/perfetto/src/tracing/test/
Dapi_integrationtest.cc446 perfetto::TracingSession* tracing_session) { in ReadLogMessagesFromTrace() argument
447 std::vector<char> raw_trace = tracing_session->ReadTraceBlocking(); in ReadLogMessagesFromTrace()
500 perfetto::TracingSession* tracing_session) { in ReadSlicesFromTrace() argument
501 std::vector<char> raw_trace = tracing_session->ReadTraceBlocking(); in ReadSlicesFromTrace()
724 auto* tracing_session = NewTrace(cfg); in TEST_P() local
726 tracing_session->get()->StartBlocking(); in TEST_P()
727 tracing_session->get()->StopBlocking(); in TEST_P()
800 auto* tracing_session = NewTrace(trace_config); in TEST_P() local
802 tracing_session->get()->StartBlocking(); in TEST_P()
811 tracing_session->get()->ChangeTraceConfig(trace_config); in TEST_P()
[all …]
/external/perfetto/src/tracing/
Dapi_benchmark.cc55 auto tracing_session = in StartTracing() local
57 tracing_session->Setup(cfg); in StartTracing()
58 tracing_session->StartBlocking(); in StartTracing()
59 return tracing_session; in StartTracing()
63 auto tracing_session = StartTracing("benchmark"); in BM_TracingDataSourceLambda() local
74 tracing_session->StopBlocking(); in BM_TracingDataSourceLambda()
75 PERFETTO_CHECK(!tracing_session->ReadTraceBlocking().empty()); in BM_TracingDataSourceLambda()
86 auto tracing_session = StartTracing("track_event"); in BM_TracingTrackEventBasic() local
93 tracing_session->StopBlocking(); in BM_TracingTrackEventBasic()
94 PERFETTO_CHECK(!tracing_session->ReadTraceBlocking().empty()); in BM_TracingTrackEventBasic()
[all …]
/external/perfetto/examples/sdk/
Dexample_custom_data_source.cc65 auto tracing_session = perfetto::Tracing::NewTrace(); in StartTracing() local
66 tracing_session->Setup(cfg); in StartTracing()
67 tracing_session->StartBlocking(); in StartTracing()
68 return tracing_session; in StartTracing()
71 void StopTracing(std::unique_ptr<perfetto::TracingSession> tracing_session) { in StopTracing() argument
77 tracing_session->StopBlocking(); in StopTracing()
78 std::vector<char> trace_data(tracing_session->ReadTraceBlocking()); in StopTracing()
92 auto tracing_session = StartTracing(); in main() local
101 StopTracing(std::move(tracing_session)); in main()
Dexample.cc45 auto tracing_session = perfetto::Tracing::NewTrace(); in StartTracing() local
46 tracing_session->Setup(cfg); in StartTracing()
47 tracing_session->StartBlocking(); in StartTracing()
48 return tracing_session; in StartTracing()
51 void StopTracing(std::unique_ptr<perfetto::TracingSession> tracing_session) { in StopTracing() argument
56 tracing_session->StopBlocking(); in StopTracing()
57 std::vector<char> trace_data(tracing_session->ReadTraceBlocking()); in StopTracing()
88 auto tracing_session = StartTracing(); in main() local
99 StopTracing(std::move(tracing_session)); in main()
Dexample_console.cc42 auto tracing_session = perfetto::Tracing::NewTrace(); in StartTracing() local
43 tracing_session->Setup(cfg); in StartTracing()
44 tracing_session->StartBlocking(); in StartTracing()
45 return tracing_session; in StartTracing()
65 auto tracing_session = StartTracing(); in main() local
70 tracing_session->StopBlocking(); in main()
/external/perfetto/docs/instrumentation/
Dtracing-sdk.md350 std::unique_ptr<perfetto::TracingSession> tracing_session(
352 tracing_session->Setup(cfg);
353 tracing_session->StartBlocking();
365 tracing_session->StopBlocking();
366 std::vector<char> trace_data(tracing_session->ReadTraceBlocking());
381 tracing_session->Setup(cfg, fd);
382 tracing_session->StartBlocking();
384 tracing_session->StopBlocking();