template <typename DerivedDataSource, typename DataSourceTraits = DefaultDataSourceTraits>

struct DataSourceHelper

Defined at line 249 of file ../../third_party/perfetto/include/perfetto/tracing/data_source.h

Holds the type for a DataSource. Accessed by the static Trace() method

fastpaths. This allows redefinitions under a component where a component

specific export macro is used.

Due to C2086 (redefinition) error on MSVC/clang-cl, internal::DataSourceType

can't be a static data member. To avoid explicit specialization after

instantiation error, type() needs to be in a template helper class that's

instantiated independently from DataSource. See b/280777748.

Public Methods

internal::DataSourceType & type ()

Defined at line 250 of file ../../third_party/perfetto/include/perfetto/tracing/data_source.h