/external/perfetto/src/profiling/common/ |
D | producer_support_unittest.cc | 30 DataSourceConfig ds_config; in TEST() local 31 ds_config.set_enable_extra_guardrails(true); in TEST() 32 EXPECT_TRUE(CanProfileAndroid(ds_config, 1, {}, "userdebug", "/dev/null")); in TEST() 36 DataSourceConfig ds_config; in TEST() local 37 ds_config.set_enable_extra_guardrails(false); in TEST() 44 EXPECT_TRUE(CanProfileAndroid(ds_config, 10001, {}, "userdebug", tmp.path())); in TEST() 48 DataSourceConfig ds_config; in TEST() local 49 ds_config.set_enable_extra_guardrails(true); in TEST() 56 EXPECT_TRUE(CanProfileAndroid(ds_config, 10001, {}, "userdebug", tmp.path())); in TEST() 60 DataSourceConfig ds_config; in TEST() local [all …]
|
D | producer_support.cc | 33 bool CanProfile(const DataSourceConfig& ds_config, in CanProfile() argument 42 base::ignore_result(ds_config); in CanProfile() 50 return CanProfileAndroid(ds_config, uid, installed_by, std::string(buf), in CanProfile() 55 bool CanProfileAndroid(const DataSourceConfig& ds_config, in CanProfileAndroid() argument 100 switch (ds_config.session_initiator()) { in CanProfileAndroid()
|
D | producer_support.h | 28 bool CanProfile(const DataSourceConfig& ds_config, 31 bool CanProfileAndroid(const DataSourceConfig& ds_config,
|
/external/perfetto/test/ |
D | end_to_end_integrationtest.cc | 261 auto* ds_config = trace_config->add_data_sources()->mutable_config(); in SetTraceConfigForBugreportTest() local 262 ds_config->set_name("android.perfetto.FakeProducer"); in SetTraceConfigForBugreportTest() 263 ds_config->mutable_for_testing()->set_message_count(3); in SetTraceConfigForBugreportTest() 264 ds_config->mutable_for_testing()->set_message_size(10); in SetTraceConfigForBugreportTest() 265 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in SetTraceConfigForBugreportTest() 319 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 320 ds_config->set_name("linux.ftrace"); in TEST_F() 321 ds_config->set_target_buffer(0); in TEST_F() 326 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in TEST_F() 366 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local [all …]
|
D | end_to_end_benchmark.cc | 52 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkProducer() local 53 ds_config->set_name("android.perfetto.FakeProducer"); in BenchmarkProducer() 54 ds_config->set_target_buffer(0); in BenchmarkProducer() 65 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in BenchmarkProducer() 66 ds_config->mutable_for_testing()->set_message_count(message_count); in BenchmarkProducer() 67 ds_config->mutable_for_testing()->set_message_size(message_bytes); in BenchmarkProducer() 68 ds_config->mutable_for_testing()->set_max_messages_per_second(messages_per_s); in BenchmarkProducer() 145 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkConsumer() local 146 ds_config->set_name("android.perfetto.FakeProducer"); in BenchmarkConsumer() 147 ds_config->set_target_buffer(0); in BenchmarkConsumer() [all …]
|
D | end_to_end_shared_memory_fuzzer.cc | 170 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in FuzzSharedMemory() local 171 ds_config->set_name("android.perfetto.FakeProducer"); in FuzzSharedMemory() 172 ds_config->set_target_buffer(0); in FuzzSharedMemory()
|
/external/perfetto/test/cts/ |
D | end_to_end_integrationtest_cts.cc | 72 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TestMockProducer() local 73 ds_config->set_name(producer_name); in TestMockProducer() 74 ds_config->set_target_buffer(0); in TestMockProducer() 79 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in TestMockProducer() 80 ds_config->mutable_for_testing()->set_message_count(kEventCount); in TestMockProducer() 81 ds_config->mutable_for_testing()->set_message_size(kMessageSizeBytes); in TestMockProducer() 82 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in TestMockProducer()
|
D | heapprofd_test_cts.cc | 83 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local 84 ds_config->set_name("android.heapprofd"); in ProfileRuntime() 85 ds_config->set_target_buffer(0); in ProfileRuntime() 92 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileRuntime() 124 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileStartup() local 125 ds_config->set_name("android.heapprofd"); in ProfileStartup() 126 ds_config->set_target_buffer(0); in ProfileStartup() 133 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileStartup()
|
D | heapprofd_java_test_cts.cc | 73 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local 74 ds_config->set_name("android.java_hprof"); in ProfileRuntime() 75 ds_config->set_target_buffer(0); in ProfileRuntime() 79 ds_config->set_java_hprof_config_raw(java_hprof_config.SerializeAsString()); in ProfileRuntime()
|
D | traced_perf_test_cts.cc | 84 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileSystemWide() local 85 ds_config->set_name("linux.perf"); in ProfileSystemWide() 86 ds_config->set_target_buffer(0); in ProfileSystemWide() 92 ds_config->set_perf_event_config_raw(perf_config.SerializeAsString()); in ProfileSystemWide()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_config_muxer_unittest.cc | 232 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local 233 ASSERT_TRUE(ds_config); in TEST_F() 234 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F() 271 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local 272 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F() 334 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local 335 ASSERT_TRUE(ds_config); in TEST_F() 336 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F() 384 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local 385 ASSERT_TRUE(ds_config); in TEST_F() [all …]
|
D | cpu_reader_fuzzer.cc | 56 FtraceDataSourceConfig ds_config{EventFilter{}, in FuzzCpuReaderProcessPagesForDataSource() local 61 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource() 63 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource() 68 &ds_config, g_page, /*pages_read=*/1, in FuzzCpuReaderProcessPagesForDataSource()
|
D | cpu_reader_unittest.cc | 384 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local 385 ds_config.event_filter.AddEnabledEvent( in TEST() 402 parse_pos, &page_header.value(), table, &ds_config, &compact_buffer, in TEST() 512 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local 513 ds_config.event_filter.AddEnabledEvent( in TEST() 529 &ds_config, &compact_buffer, in TEST() 561 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local 562 ds_config.event_filter.AddEnabledEvent( in TEST() 578 parse_pos, &page_header.value(), table, &ds_config, &compact_buffer, in TEST() 601 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local [all …]
|
D | cpu_reader.cc | 291 const FtraceDataSourceConfig* ds_config, in ProcessPagesForDataSource() argument 299 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ProcessPagesForDataSource() 317 if (ds_config->symbolize_ksyms) { in ProcessPagesForDataSource() 416 ParsePagePayload(parse_pos, &page_header.value(), table, ds_config, in ProcessPagesForDataSource() 488 const FtraceDataSourceConfig* ds_config, in ParsePagePayload() argument 570 if (ds_config->event_filter.IsEventEnabled(ftrace_event_id)) { in ParsePagePayload() 573 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ParsePagePayload()
|
/external/perfetto/src/traced/service/ |
D | builtin_producer.cc | 94 const DataSourceConfig& ds_config) { in SetupDataSource() argument 95 if (ds_config.name() == kHeapprofdDataSourceName || in SetupDataSource() 96 ds_config.name() == kJavaHprofDataSourceName) { in SetupDataSource() 103 if (ds_config.name() == kTracedPerfDataSourceName) { in SetupDataSource() 112 const DataSourceConfig& ds_config) { in StartDataSource() argument 115 if (ds_config.name() == MetatraceWriter::kDataSourceName) { in StartDataSource() 117 static_cast<BufferID>(ds_config.target_buffer())); in StartDataSource()
|
/external/perfetto/src/profiling/memory/ |
D | java_hprof_producer.cc | 72 if (!CanProfile(ds.ds_config, uids->effective, in SignalDataSource() 81 static_cast<int32_t>(ds.ds_config.tracing_session_id() % in SignalDataSource() 100 const DataSourceConfig& ds_config) { in SetupDataSource() argument 106 config.ParseFromString(ds_config.java_hprof_config_raw()); in SetupDataSource() 122 ds.ds_config = std::move(ds_config); in SetupDataSource()
|
D | heapprofd_producer.cc | 388 const DataSourceConfig& ds_config) { in SetupDataSource() argument 389 if (ds_config.session_initiator() == in SetupDataSource() 395 if (mode_ == HeapprofdMode::kChild && ds_config.enable_extra_guardrails()) { in SetupDataSource() 401 heapprofd_config.ParseFromString(ds_config.heapprofd_config_raw()); in SetupDataSource() 408 if (ds_config.name() != kHeapprofdDataSource) { in SetupDataSource() 439 auto buffer_id = static_cast<BufferID>(ds_config.target_buffer()); in SetupDataSource() 455 auto buffer_id = static_cast<BufferID>(ds_config.target_buffer()); in SetupDataSource() 462 data_source.ds_config = ds_config; in SetupDataSource() 464 data_source.stop_timeout_ms = ds_config.stop_timeout_ms() in SetupDataSource() 465 ? ds_config.stop_timeout_ms() in SetupDataSource() [all …]
|
/external/perfetto/src/tracing/test/ |
D | tracing_integration_test.cc | 226 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 227 ds_config->set_name("perfetto.test"); in TEST_F() 228 ds_config->set_target_buffer(0); in TEST_F() 352 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 353 ds_config->set_name("perfetto.test"); in TEST_F() 382 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 383 ds_config->set_name("perfetto.test"); in TEST_F() 384 ds_config->set_target_buffer(0); in TEST_F() 473 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 474 ds_config->set_name("perfetto.test"); in TEST_F() [all …]
|
/external/perfetto/src/tracing/core/ |
D | tracing_service_impl_unittest.cc | 313 auto* ds_config = ds->mutable_config(); in TEST_F() local 314 ds_config->set_name("data_source"); in TEST_F() 1408 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 1409 ds_config->set_name("data_source"); in TEST_F() 1530 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 1531 ds_config->set_name("data_source"); in TEST_F() 1554 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 1555 ds_config->set_name("data_source"); in TEST_F() 1614 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local 1615 ds_config->set_name("data_source"); in TEST_F() [all …]
|
/external/perfetto/src/tracing/consumer_api_deprecated/ |
D | consumer_api_deprecated_test.cc | 46 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in GetConfig() local 47 ds_config->set_name("linux.ftrace"); in GetConfig() 53 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in GetConfig() 54 ds_config->set_target_buffer(0); in GetConfig()
|
/external/perfetto/src/traced/probes/ps/ |
D | process_stats_data_source_unittest.cc | 139 DataSourceConfig ds_config; in TEST_F() local 142 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F() 143 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F() 322 DataSourceConfig ds_config; in TEST_F() local 326 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F() 327 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F() 401 DataSourceConfig ds_config; in TEST_F() local 406 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F() 407 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F() 469 DataSourceConfig ds_config; in TEST_F() local [all …]
|
/external/perfetto/src/perfetto_cmd/ |
D | config.cc | 141 auto* ds_config = config->add_data_sources()->mutable_config(); in CreateConfigFromOptions() local 142 ds_config->set_name("linux.ftrace"); in CreateConfigFromOptions() 150 ds_config->set_ftrace_config_raw(ftrace_cfg.SerializeAsString()); in CreateConfigFromOptions()
|
/external/perfetto/src/traced/probes/filesystem/ |
D | inode_file_data_source_unittest.cc | 89 DataSourceConfig ds_config; in TEST_F() local 93 ds_config.set_inode_file_config_raw(inode_cfg.SerializeAsString()); in TEST_F() 94 auto data_source = GetInodeFileDataSource(ds_config); in TEST_F()
|
/external/perfetto/src/traced/probes/packages_list/ |
D | packages_list_data_source.cc | 63 const DataSourceConfig& ds_config, in PackagesListDataSource() argument 67 PackagesListConfig::Decoder cfg(ds_config.packages_list_config_raw()); in PackagesListDataSource()
|
/external/perfetto/src/traced/probes/initial_display_state/ |
D | initial_display_state_data_source.cc | 44 const DataSourceConfig& ds_config, in InitialDisplayStateDataSource() argument 52 ds_config.android_polled_state_config_raw()); in InitialDisplayStateDataSource()
|