| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
void OnSetup(const perfetto::DataSourceBase::SetupArgs&) override;nit: remove, since no longer needed? (TrackEventSessionObserver has a default implementation that does nothing)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void OnSetup(const perfetto::DataSourceBase::SetupArgs&) override;nit: remove, since no longer needed? (TrackEventSessionObserver has a default implementation that does nothing)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
5 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: base/trace_event/trace_log.h
Insertions: 0, Deletions: 1.
@@ -173,7 +173,6 @@
const perfetto::TraceConfig& perfetto_config);
// perfetto::TrackEventSessionObserver implementation.
- void OnSetup(const perfetto::DataSourceBase::SetupArgs&) override;
void OnStart(const perfetto::DataSourceBase::StartArgs&) override;
void OnStop(const perfetto::DataSourceBase::StopArgs&) override;
```
```
The name of the file: base/trace_event/trace_log.cc
Insertions: 0, Deletions: 2.
@@ -700,8 +700,6 @@
return enabled_state_observers_.size();
}
-void TraceLog::OnSetup(const perfetto::DataSourceBase::SetupArgs& args) {}
-
void TraceLog::OnStart(const perfetto::DataSourceBase::StartArgs&) {
{
AutoLock lock(track_event_lock_);
```
[tracing] Move track event sessions tracking to trace_startup
TraceLog records track event sessions; The only use case for this is
CreateTracingConfigSharedMemory().
Meanwhile, the impl is flawed because it doesn't consider whether
data source is started or not.
This CL moves the tracking to its own class in trace_startup.cc, with
more dedicated tracking, simplifying CreateTracingConfigSharedMemory().
Reason:
- Avoid any new call to GetTrackEventSessions()
- One step towards making TraceLog test only.
This removes dcheck only condition in CreateTracingOutputSharedMemory(),
which isn't guaranteed because session can racily stop.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |