/external/perfetto/src/tracing/core/ |
D | tracing_service_impl_unittest.cc | 81 &protos::gen::TracePacket::trace_config, in HasTriggerModeInternal() 309 TraceConfig trace_config; in TEST_F() local 310 trace_config.add_buffers()->set_size_kb(128); in TEST_F() 311 auto* ds = trace_config.add_data_sources(); in TEST_F() 315 consumer->EnableTracing(trace_config); in TEST_F() 343 TraceConfig trace_config; in TEST_F() local 344 trace_config.add_buffers()->set_size_kb(128); in TEST_F() 345 trace_config.add_data_sources()->mutable_config()->set_name("ds_1"); in TEST_F() 346 auto* trigger_config = trace_config.mutable_trigger_config(); in TEST_F() 357 consumer->EnableTracing(trace_config); in TEST_F() [all …]
|
/external/perfetto/test/ |
D | end_to_end_integrationtest.cc | 257 void SetTraceConfigForBugreportTest(TraceConfig* trace_config) { in SetTraceConfigForBugreportTest() argument 258 trace_config->add_buffers()->set_size_kb(4096); in SetTraceConfigForBugreportTest() 259 trace_config->set_duration_ms(60000); // Will never hit this. in SetTraceConfigForBugreportTest() 260 trace_config->set_bugreport_score(10); in SetTraceConfigForBugreportTest() 261 auto* ds_config = trace_config->add_data_sources()->mutable_config(); in SetTraceConfigForBugreportTest() 315 TraceConfig trace_config; in TEST_F() local 316 trace_config.add_buffers()->set_size_kb(1024); in TEST_F() 317 trace_config.set_duration_ms(3000); in TEST_F() 319 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() 328 helper.StartTracing(trace_config); in TEST_F() [all …]
|
D | end_to_end_benchmark.cc | 49 TraceConfig trace_config; in BenchmarkProducer() local 50 trace_config.add_buffers()->set_size_kb(512); in BenchmarkProducer() 52 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkProducer() 70 helper.StartTracing(trace_config); in BenchmarkProducer() 129 TraceConfig trace_config; in BenchmarkConsumer() local 133 trace_config.add_buffers()->set_size_kb(kBufferSizeBytes / 1024); in BenchmarkConsumer() 145 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkConsumer() 153 helper.StartTracing(trace_config); in BenchmarkConsumer()
|
D | end_to_end_shared_memory_fuzzer.cc | 167 TraceConfig trace_config; in FuzzSharedMemory() local 168 trace_config.add_buffers()->set_size_kb(8); in FuzzSharedMemory() 170 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in FuzzSharedMemory() 174 helper.StartTracing(trace_config); in FuzzSharedMemory()
|
/external/autotest/client/tests/tracing_microbenchmark/ |
D | tracers.py | 24 self.trace_config('tracing_enabled', '0') 25 self.trace_config('current_tracer', 'nop') 26 self.trace_config('events/enable', '0') 27 self.trace_config('trace', '') 29 self.trace_config('buffer_size_kb', str(buffer_size_kb)) 31 self.trace_config('events/syscalls/sys_enter_getuid/enable', '1') 35 self.trace_config('buffer_size_kb', '1408') 37 self.trace_config('events/enable', '0') 40 self.trace_config('tracing_enabled', '1') 43 self.trace_config('tracing_enabled', '0') [all …]
|
/external/perfetto/test/cts/ |
D | heapprofd_test_cts.cc | 78 TraceConfig trace_config; in ProfileRuntime() local 79 trace_config.add_buffers()->set_size_kb(10 * 1024); in ProfileRuntime() 80 trace_config.set_duration_ms(4000); in ProfileRuntime() 81 trace_config.set_unique_session_name(RandomSessionName().c_str()); in ProfileRuntime() 83 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() 95 helper.StartTracing(trace_config); in ProfileRuntime() 118 TraceConfig trace_config; in ProfileStartup() local 119 trace_config.add_buffers()->set_size_kb(10 * 1024); in ProfileStartup() 120 trace_config.set_duration_ms(4000); in ProfileStartup() 121 trace_config.set_enable_extra_guardrails(enable_extra_guardrails); in ProfileStartup() [all …]
|
D | heapprofd_java_test_cts.cc | 68 TraceConfig trace_config; in ProfileRuntime() local 69 trace_config.add_buffers()->set_size_kb(40 * 1024); in ProfileRuntime() 70 trace_config.set_duration_ms(6000); in ProfileRuntime() 71 trace_config.set_unique_session_name(RandomSessionName().c_str()); in ProfileRuntime() 73 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() 82 helper.StartTracing(trace_config); in ProfileRuntime()
|
D | traced_perf_test_cts.cc | 78 TraceConfig trace_config; in ProfileSystemWide() local 79 trace_config.add_buffers()->set_size_kb(20 * 1024); in ProfileSystemWide() 80 trace_config.set_duration_ms(3000); in ProfileSystemWide() 81 trace_config.set_data_source_stop_timeout_ms(8000); in ProfileSystemWide() 82 trace_config.set_unique_session_name(RandomSessionName().c_str()); in ProfileSystemWide() 84 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileSystemWide() 95 helper.StartTracing(trace_config); in ProfileSystemWide()
|
D | end_to_end_integrationtest_cts.cc | 68 TraceConfig trace_config; in TestMockProducer() local 69 trace_config.add_buffers()->set_size_kb(1024); in TestMockProducer() 70 trace_config.set_duration_ms(200); in TestMockProducer() 72 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TestMockProducer() 84 helper.StartTracing(trace_config); in TestMockProducer()
|
/external/OpenCSD/decoder/tests/source/ |
D | mem_buff_demo.cpp | 189 ocsd_etmv4_cfg trace_config; in createETMv4StreamDecoder() local 198 trace_config.arch_ver = ARCH_V8; in createETMv4StreamDecoder() 199 trace_config.core_prof = profile_CortexA; in createETMv4StreamDecoder() 201 trace_config.reg_configr = 0x000000C1; in createETMv4StreamDecoder() 202 …trace_config.reg_traceidr = 0x00000010; /* this is the trace ID -> 0x10, change this to analyse … in createETMv4StreamDecoder() 203 trace_config.reg_idr0 = 0x28000EA1; in createETMv4StreamDecoder() 204 trace_config.reg_idr1 = 0x4100F403; in createETMv4StreamDecoder() 205 trace_config.reg_idr2 = 0x00000488; in createETMv4StreamDecoder() 206 trace_config.reg_idr8 = 0x0; in createETMv4StreamDecoder() 207 trace_config.reg_idr9 = 0x0; in createETMv4StreamDecoder() [all …]
|
D | c_api_pkt_print_test.c | 627 ocsd_etmv4_cfg trace_config; in create_decoder_etmv4() local 634 trace_config.arch_ver = ARCH_V8; in create_decoder_etmv4() 635 trace_config.core_prof = profile_CortexA; in create_decoder_etmv4() 637 trace_config.reg_configr = 0x000000C1; in create_decoder_etmv4() 638 …trace_config.reg_traceidr = 0x00000010; /* this is the trace ID -> 0x10, change this to analys… in create_decoder_etmv4() 642 trace_config.reg_traceidr = (uint32_t)test_trc_id_override; in create_decoder_etmv4() 645 trace_config.reg_idr0 = 0x28000EA1; in create_decoder_etmv4() 646 trace_config.reg_idr1 = 0x4100F403; in create_decoder_etmv4() 647 trace_config.reg_idr2 = 0x00000488; in create_decoder_etmv4() 648 trace_config.reg_idr8 = 0x0; in create_decoder_etmv4() [all …]
|
/external/perfetto/src/tracing/test/ |
D | tracing_integration_test.cc | 224 TraceConfig trace_config; in TEST_F() local 225 trace_config.add_buffers()->set_size_kb(4096 * 10); in TEST_F() 226 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() 229 consumer_endpoint_->EnableTracing(trace_config); in TEST_F() 296 Invoke([&num_pack_rx, all_packets_rx, &trace_config, in TEST_F() 320 EXPECT_EQ(packet.trace_config(), trace_config); in TEST_F() 350 TraceConfig trace_config; in TEST_F() local 351 trace_config.add_buffers()->set_size_kb(4096 * 10); in TEST_F() 352 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() 354 consumer_endpoint_->EnableTracing(trace_config); in TEST_F() [all …]
|
D | mock_consumer.cc | 51 void MockConsumer::EnableTracing(const TraceConfig& trace_config, in EnableTracing() argument 53 service_endpoint_->EnableTracing(trace_config, std::move(write_into_file)); in EnableTracing() 60 void MockConsumer::ChangeTraceConfig(const TraceConfig& trace_config) { in ChangeTraceConfig() argument 61 service_endpoint_->ChangeTraceConfig(trace_config); in ChangeTraceConfig()
|
/external/perfetto/src/profiling/memory/ |
D | heapprofd_end_to_end_test.cc | 151 TraceConfig trace_config; in MakeTraceConfig() local 152 trace_config.add_buffers()->set_size_kb(10 * 1024); in MakeTraceConfig() 153 trace_config.set_duration_ms(2000); in MakeTraceConfig() 154 trace_config.set_data_source_stop_timeout_ms(10000); in MakeTraceConfig() 156 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in MakeTraceConfig() 163 return trace_config; in MakeTraceConfig() 634 const TraceConfig& trace_config) { in Trace() argument 637 helper->StartTracing(trace_config); in Trace() 790 TraceConfig trace_config = MakeTraceConfig([pid](HeapprofdConfig* cfg) { in TEST_P() local 797 auto helper = Trace(trace_config); in TEST_P() [all …]
|
/external/perfetto/src/tracing/consumer_api_deprecated/ |
D | consumer_api_deprecated_test.cc | 42 perfetto::protos::gen::TraceConfig trace_config; in GetConfig() local 43 trace_config.set_duration_ms(duration_ms); in GetConfig() 44 trace_config.add_buffers()->set_size_kb(4096); in GetConfig() 45 trace_config.set_deferred_start(true); in GetConfig() 46 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in GetConfig() 55 return trace_config.SerializeAsString(); in GetConfig()
|
/external/perfetto/src/tracing/ipc/service/ |
D | consumer_ipc_service.cc | 73 const TraceConfig& trace_config = req.trace_config(); in EnableTracing() local 75 if (trace_config.write_into_file() && trace_config.output_path().empty()) in EnableTracing() 77 remote_consumer->service_endpoint->EnableTracing(trace_config, std::move(fd)); in EnableTracing() 94 remote_consumer->service_endpoint->ChangeTraceConfig(req.trace_config()); in ChangeTraceConfig() 432 const TraceConfig& trace_config) { in OnAttach() argument 438 *response->mutable_trace_config() = trace_config; in OnAttach()
|
/external/perfetto/src/tracing/ipc/consumer/ |
D | consumer_ipc_client_impl.cc | 71 void ConsumerIPCClientImpl::EnableTracing(const TraceConfig& trace_config, in EnableTracing() argument 87 *req.mutable_trace_config() = trace_config; in EnableTracing() 102 void ConsumerIPCClientImpl::ChangeTraceConfig(const TraceConfig& trace_config) { in ChangeTraceConfig() argument 116 *req.mutable_trace_config() = trace_config; in ChangeTraceConfig() 278 const TraceConfig& trace_config = response->trace_config(); in Attach() local 294 weak_this->consumer_->OnAttach(/*success=*/true, trace_config); in Attach()
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | proto_trace_reader.cc | 223 ParseTraceConfig(decoder.trace_config()); in ParsePacket() 234 protos::pbzero::TraceConfig::Decoder trace_config(blob); in ParseTraceConfig() local 243 if (trace_config.has_flush_period_ms() && in ParseTraceConfig() 244 trace_config.flush_period_ms() > 0) { in ParseTraceConfig() 246 static_cast<int64_t>(trace_config.flush_period_ms()) * 2 * 1000 * 1000; in ParseTraceConfig() 264 if (trace_config.write_into_file()) { in ParseTraceConfig()
|
/external/perfetto/test/trace_processor/tables/ |
D | trace_metadata.json.out | 5 …trace_config: \"\"\n }\n inode_file_config: {\n scan_interval_ms: 0\n scan_delay_m…
|
/external/perfetto/test/trace_processor/memory/ |
D | trace_metadata.out | 4 …trace_config: \"\"\n }\n inode_file_config: {\n scan_interval_ms: 0\n scan_delay_m…
|
/external/libchrome/base/trace_event/ |
D | trace_event_android.cc | 117 TraceConfig trace_config; in StartATrace() local 118 trace_config.SetTraceRecordMode(RECORD_CONTINUOUSLY); in StartATrace() 119 SetEnabled(trace_config, TraceLog::RECORDING_MODE); in StartATrace()
|
/external/perfetto/protos/perfetto/config/ |
D | stress_test_config.proto | 19 import "protos/perfetto/config/trace_config.proto"; 25 optional TraceConfig trace_config = 1; field 38 // - trace_config.duration_ms is reached.
|
D | BUILD.gn | 42 "trace_config.proto", 57 sources = [ "trace_config.proto" ]
|
/external/perfetto/src/tracing/internal/ |
D | tracing_muxer_impl.cc | 507 std::shared_ptr<TraceConfig> trace_config(new TraceConfig(cfg)); in Setup() local 518 trace_config->set_write_into_file(true); in Setup() 521 muxer->task_runner_->PostTask([muxer, session_id, trace_config, fd] { in Setup() 522 muxer->SetupTracingSession(session_id, trace_config, base::ScopedFile(fd)); in Setup() 1181 const std::shared_ptr<TraceConfig>& trace_config, in SetupTracingSession() argument 1184 PERFETTO_CHECK(!trace_fd || trace_config->write_into_file()); in SetupTracingSession() 1190 consumer->trace_config_ = trace_config; in SetupTracingSession() 1198 if (trace_config->deferred_start()) { in SetupTracingSession() 1199 consumer->service_->EnableTracing(*trace_config, in SetupTracingSession() 1235 const TraceConfig& trace_config) { in ChangeTracingSessionConfig() argument [all …]
|
/external/perfetto/test/stress_test/ |
D | stress_test.cc | 212 consumer.args.input = cfg.trace_config().SerializeAsString(); in RunConfig() 227 static_cast<int>(cfg.trace_config().duration_ms() + 30000))) { in RunConfig() 477 cfg.trace_config().duration_ms(), tres.run_time_ms); in StressTestMain() 482 double dur_s = cfg.trace_config().duration_ms() / 1e3; in StressTestMain() 501 double exp_rss_mb = cfg.trace_config().buffers()[0].size_kb() / 1000; in StressTestMain()
|