Rename producer methods to Start/StopDataSource
This is a pure rename with no functional changes.
This is in preparation for the fast-triggering
APIs described in the linked bug.
Bug: 116547201
Change-Id: Ie9d5d4793350c5e92acec5c805637db05e54e634
diff --git a/src/traced/probes/probes_producer.cc b/src/traced/probes/probes_producer.cc
index cc90242..5b37165 100644
--- a/src/traced/probes/probes_producer.cc
+++ b/src/traced/probes/probes_producer.cc
@@ -129,8 +129,8 @@
ConnectWithRetries(socket_name, task_runner);
}
-void ProbesProducer::CreateDataSourceInstance(DataSourceInstanceID instance_id,
- const DataSourceConfig& config) {
+void ProbesProducer::StartDataSource(DataSourceInstanceID instance_id,
+ const DataSourceConfig& config) {
PERFETTO_DCHECK(data_sources_.count(instance_id) == 0);
TracingSessionID session_id = config.tracing_session_id();
PERFETTO_CHECK(session_id > 0);
@@ -241,7 +241,7 @@
return data_source;
}
-void ProbesProducer::TearDownDataSourceInstance(DataSourceInstanceID id) {
+void ProbesProducer::StopDataSource(DataSourceInstanceID id) {
PERFETTO_LOG("Producer stop (id=%" PRIu64 ")", id);
auto it = data_sources_.find(id);
if (it == data_sources_.end()) {