Home
last modified time | relevance | path

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

12

/external/perfetto/test/
Dtraced_integrationtest.cc70 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
71 ds_config->set_name("android.perfetto.FakeProducer"); in TEST()
72 ds_config->set_target_buffer(0); in TEST()
77 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in TEST()
78 ds_config->mutable_for_testing()->set_message_count(kNumPackets); in TEST()
79 ds_config->mutable_for_testing()->set_message_size(kMsgSize); in TEST()
80 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in TEST()
111 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
112 ds_config->set_name("android.perfetto.FakeProducer"); in TEST()
113 ds_config->set_target_buffer(0); in TEST()
[all …]
Dftrace_integrationtest.cc116 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
117 ds_config->set_name("linux.ftrace"); in TEST_F()
118 ds_config->set_target_buffer(0); in TEST_F()
123 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in TEST_F()
166 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
167 ds_config->set_name("linux.ftrace"); in TEST_F()
171 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in TEST_F()
249 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
250 ds_config->set_name("linux.ftrace"); in TEST_F()
254 ds_config->set_ftrace_config_raw(ftrace_cfg.SerializeAsString()); in TEST_F()
[all …]
Dcmdline_integrationtest.cc77 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in CreateTraceConfigForBugreportTest() local
78 ds_config->set_name("android.perfetto.FakeProducer"); in CreateTraceConfigForBugreportTest()
79 ds_config->mutable_for_testing()->set_message_count(3); in CreateTraceConfigForBugreportTest()
80 ds_config->mutable_for_testing()->set_message_size(10); in CreateTraceConfigForBugreportTest()
357 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
358 ds_config->set_name("android.perfetto.FakeProducer"); in TEST_F()
359 ds_config->mutable_for_testing()->set_message_count(kMessageCount); in TEST_F()
360 ds_config->mutable_for_testing()->set_message_size(kMessageSize); in TEST_F()
449 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
450 ds_config->set_name("android.perfetto.FakeProducer"); in TEST_F()
[all …]
Dend_to_end_benchmark.cc52 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 …]
Dandroid_integrationtest.cc223 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
224 ds_config->set_name("android.power"); in TEST()
225 ds_config->set_target_buffer(0); in TEST()
234 ds_config->set_android_power_config_raw(power_config.SerializeAsString()); in TEST()
/external/perfetto/test/cts/
Dproducer_to_consumer_integrationtest_cts.cc71 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TestMockProducer() local
72 ds_config->set_name(producer_name); in TestMockProducer()
73 ds_config->set_target_buffer(0); in TestMockProducer()
78 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in TestMockProducer()
79 ds_config->mutable_for_testing()->set_message_count(kEventCount); in TestMockProducer()
80 ds_config->mutable_for_testing()->set_message_size(kMessageSizeBytes); in TestMockProducer()
81 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in TestMockProducer()
Dheapprofd_test_cts.cc101 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local
102 ds_config->set_name("android.heapprofd"); in ProfileRuntime()
103 ds_config->set_target_buffer(0); in ProfileRuntime()
113 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileRuntime()
155 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileStartup() local
156 ds_config->set_name("android.heapprofd"); in ProfileStartup()
157 ds_config->set_target_buffer(0); in ProfileStartup()
167 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileStartup()
352 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
353 ds_config->set_name("linux.process_stats"); in TEST()
[all …]
Dheapprofd_java_test_cts.cc91 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local
92 ds_config->set_name("android.java_hprof"); in ProfileRuntime()
93 ds_config->set_target_buffer(0); in ProfileRuntime()
97 ds_config->set_java_hprof_config_raw(java_hprof_config.SerializeAsString()); in ProfileRuntime()
137 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TriggerOomHeapDump() local
138 ds_config->set_name("android.java_hprof.oom"); in TriggerOomHeapDump()
139 ds_config->set_target_buffer(0); in TriggerOomHeapDump()
143 ds_config->set_java_hprof_config_raw(java_hprof_config.SerializeAsString()); in TriggerOomHeapDump()
237 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
238 ds_config->set_name("android.java_hprof"); in TEST()
[all …]
Dtraced_perf_test_cts.cc95 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileSystemWide() local
96 ds_config->set_name("linux.perf"); in ProfileSystemWide()
97 ds_config->set_target_buffer(0); in ProfileSystemWide()
102 ds_config->set_perf_event_config_raw(perf_config.SerializeAsString()); in ProfileSystemWide()
251 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
252 ds_config->set_name("linux.process_stats"); in TEST()
253 ds_config->set_process_stats_config_raw(ps_config.SerializeAsString()); in TEST()
264 ds_config = trace_config.add_data_sources()->mutable_config(); in TEST()
265 ds_config->set_name("linux.perf"); in TEST()
266 ds_config->set_target_buffer(1); in TEST()
[all …]
/external/perfetto/test/cts/reporter/
Dreporter_test_cts.cc54 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST() local
55 ds_config->set_name("android.perfetto.FakeProducer"); in TEST()
56 ds_config->set_target_buffer(0); in TEST()
65 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in TEST()
66 ds_config->mutable_for_testing()->set_message_count(kEventCount); in TEST()
67 ds_config->mutable_for_testing()->set_message_size(kMessageSizeBytes); in TEST()
68 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in TEST()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer_unittest.cc391 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
392 ASSERT_TRUE(ds_config); in TEST_F()
393 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
436 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
437 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
505 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
506 ASSERT_TRUE(ds_config); in TEST_F()
507 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
561 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
562 ASSERT_TRUE(ds_config); in TEST_F()
[all …]
Dcpu_reader_unittest.cc394 CpuReader::Bundler* CreateBundler(const FtraceDataSourceConfig& ds_config) { in CreateBundler() argument
401 ds_config.compact_sched.enabled); in CreateBundler()
436 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST_F() local
437 ds_config.event_filter.AddEnabledEvent( in TEST_F()
451 parse_pos, &page_header.value(), table, &ds_config, in TEST_F()
452 CreateBundler(ds_config), &metadata_); in TEST_F()
559 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST_F() local
560 ds_config.event_filter.AddEnabledEvent( in TEST_F()
573 &ds_config, CreateBundler(ds_config), &metadata_); in TEST_F()
602 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST_F() local
[all …]
Dcpu_reader_fuzzer.cc57 FtraceDataSourceConfig ds_config{EventFilter{}, in FuzzCpuReaderProcessPagesForDataSource() local
66 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource()
68 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource()
73 &null_writer, &metadata, /*cpu=*/0, &ds_config, g_page, /*pages_read=*/1, in FuzzCpuReaderProcessPagesForDataSource()
Dcpu_reader.cc407 const FtraceDataSourceConfig* ds_config, in ProcessPagesForDataSource() argument
415 ds_config->symbolize_ksyms ? symbolizer : nullptr, cpu, in ProcessPagesForDataSource()
417 ds_config->compact_sched.enabled); in ProcessPagesForDataSource()
420 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ProcessPagesForDataSource()
451 ds_config, &bundler, metadata); in ProcessPagesForDataSource()
522 const FtraceDataSourceConfig* ds_config, in ParsePagePayload() argument
613 if (ds_config->event_filter.IsEventEnabled(ftrace_event_id)) { in ParsePagePayload()
616 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ParsePagePayload()
623 ds_config->print_filter.has_value(); in ParsePagePayload()
644 ftrace_event_id == ds_config->print_filter->event_id()) { in ParsePagePayload()
[all …]
/external/perfetto/src/traced/service/
Dbuiltin_producer.cc117 const DataSourceConfig& ds_config) { in SetupDataSource() argument
118 if (ds_config.name() == kHeapprofdDataSourceName || in SetupDataSource()
119 ds_config.name() == kJavaHprofDataSourceName) { in SetupDataSource()
126 if (ds_config.name() == kTracedPerfDataSourceName) { in SetupDataSource()
133 if (ds_config.name() == kJavaHprofOomDataSourceName) { in SetupDataSource()
142 const DataSourceConfig& ds_config) { in StartDataSource() argument
145 if (ds_config.name() == MetatraceWriter::kDataSourceName) { in StartDataSource()
147 static_cast<BufferID>(ds_config.target_buffer())); in StartDataSource()
/external/perfetto/src/profiling/common/
Dproducer_support.cc75 bool CanProfile(const DataSourceConfig& ds_config, in CanProfile() argument
84 base::ignore_result(ds_config); in CanProfile()
90 return CanProfileAndroid(ds_config, uid, installed_by, build_type, in CanProfile()
95 bool CanProfileAndroid(const DataSourceConfig& ds_config, in CanProfileAndroid() argument
114 bool trusted_initiator = ds_config.session_initiator() == in CanProfileAndroid()
179 switch (ds_config.session_initiator()) { in CanProfileAndroid()
Dproducer_support_unittest.cc33 DataSourceConfig ds_config; in ShellInitiator() local
34 ds_config.set_session_initiator( in ShellInitiator()
36 return ds_config; in ShellInitiator()
40 DataSourceConfig ds_config; in TrustedInitiator() local
41 ds_config.set_session_initiator( in TrustedInitiator()
43 return ds_config; in TrustedInitiator()
Dproducer_support.h28 bool CanProfile(const DataSourceConfig& ds_config,
31 bool CanProfileAndroid(const DataSourceConfig& ds_config,
/external/perfetto/src/perfetto_cmd/
Dconfig.cc162 auto* ds_config = config->add_data_sources()->mutable_config(); in CreateConfigFromOptions() local
163 ds_config->set_name("linux.ftrace"); in CreateConfigFromOptions()
172 ds_config->set_ftrace_config_raw(ftrace_cfg.SerializeAsString()); in CreateConfigFromOptions()
178 auto* ds_config = config->add_data_sources()->mutable_config(); in CreateConfigFromOptions() local
179 ds_config->set_name("linux.ftrace"); in CreateConfigFromOptions()
184 ds_config->set_ftrace_config_raw(ftrace_cfg.SerializeAsString()); in CreateConfigFromOptions()
/external/perfetto/src/tracing/core/
Dtracing_service_impl_unittest.cc377 auto* ds_config = ds->mutable_config(); in TEST_F() local
378 ds_config->set_name("data_source"); in TEST_F()
1580 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1581 ds_config->set_name("data_source"); in TEST_F()
1702 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1703 ds_config->set_name("data_source"); in TEST_F()
1726 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1727 ds_config->set_name("data_source"); in TEST_F()
1787 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1788 ds_config->set_name("data_source"); in TEST_F()
[all …]
/external/perfetto/src/tracing/test/
Dtracing_integration_test.cc244 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
245 ds_config->set_name("perfetto.test"); in TEST_F()
246 ds_config->set_target_buffer(0); in TEST_F()
370 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
371 ds_config->set_name("perfetto.test"); in TEST_F()
400 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
401 ds_config->set_name("perfetto.test"); in TEST_F()
402 ds_config->set_target_buffer(0); in TEST_F()
490 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
491 ds_config->set_name("perfetto.test"); in TEST_F()
[all …]
/external/perfetto/src/profiling/memory/
Djava_hprof_producer.cc60 DataSourceConfig ds_config, in DataSource() argument
63 : ds_config_(std::move(ds_config)), in DataSource()
119 const DataSourceConfig& ds_config) { in SetupDataSource() argument
125 config.ParseFromString(ds_config.java_hprof_config_raw()); in SetupDataSource()
127 DataSource ds(ds_config, std::move(config), std::move(cmdline_patterns)); in SetupDataSource()
Dheapprofd_producer_integrationtest.cc134 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in MakeTraceConfig() local
135 ds_config->set_name("android.heapprofd"); in MakeTraceConfig()
136 ds_config->set_target_buffer(0); in MakeTraceConfig()
144 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in MakeTraceConfig()
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc144 DataSourceConfig ds_config; in TEST_F() local
147 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
148 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
327 DataSourceConfig ds_config; in TEST_F() local
332 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
333 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
440 DataSourceConfig ds_config; in TEST_F() local
445 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
446 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
543 DataSourceConfig ds_config; in TEST_F() local
[all …]
/external/perfetto/src/traced/probes/android_system_property/
Dandroid_system_property_data_source_unittest.cc71 DataSourceConfig ds_config; in BuildConfig() local
76 ds_config.set_android_system_property_config_raw(cfg.SerializeAsString()); in BuildConfig()
77 return ds_config; in BuildConfig()

12