tracing: Fix visibility of TrackEventSessionObserver
Export symbols for TrackEventSessionObserver and fix a copy & paste
error in the TrackEventSessionObserver example.
Change-Id: I1700a6e8582f1411fc5aa4bb28dc3a07a01a2be9
diff --git a/docs/instrumentation/track-events.md b/docs/instrumentation/track-events.md
index d11e0ab..e4b7279 100644
--- a/docs/instrumentation/track-events.md
+++ b/docs/instrumentation/track-events.md
@@ -601,12 +601,12 @@
// so track events emitted here won't be recorded.
}
- void OnStart(const DataSourceBase::SetupArgs&) override {
+ void OnStart(const perfetto::DataSourceBase::StartArgs&) override {
// Called when a tracing session is started. It is possible to emit track
// events from this callback.
}
- void OnStop(const DataSourceBase::StartArgs&) override {
+ void OnStop(const perfetto::DataSourceBase::StopArgs&) override {
// Called when a tracing session is stopped. It is still possible to emit
// track events from this callback.
}