@@ -328,14 +328,13 @@ class TrackEventDataSource
328
328
}
329
329
330
330
static void Flush () {
331
- Base::template Trace ([](typename Base::TraceContext ctx) { ctx.Flush (); });
331
+ Base::Trace ([](typename Base::TraceContext ctx) { ctx.Flush (); });
332
332
}
333
333
334
334
// Determine if *any* tracing category is enabled.
335
335
static bool IsEnabled () {
336
336
bool enabled = false ;
337
- Base::template CallIfEnabled (
338
- [&](uint32_t /* instances*/ ) { enabled = true ; });
337
+ Base::CallIfEnabled ([&](uint32_t /* instances*/ ) { enabled = true ; });
339
338
return enabled;
340
339
}
341
340
@@ -349,7 +348,7 @@ class TrackEventDataSource
349
348
static bool IsDynamicCategoryEnabled (
350
349
const DynamicCategory& dynamic_category) {
351
350
bool enabled = false ;
352
- Base::template Trace ([&](typename Base::TraceContext ctx) {
351
+ Base::Trace ([&](typename Base::TraceContext ctx) {
353
352
enabled = enabled || IsDynamicCategoryEnabled (&ctx, dynamic_category);
354
353
});
355
354
return enabled;
@@ -496,7 +495,7 @@ class TrackEventDataSource
496
495
const protos::gen::TrackDescriptor& desc) {
497
496
PERFETTO_DCHECK (track.uuid == desc.uuid ());
498
497
TrackRegistry::Get ()->UpdateTrack (track, desc.SerializeAsString ());
499
- Base::template Trace ([&](typename Base::TraceContext ctx) {
498
+ Base::Trace ([&](typename Base::TraceContext ctx) {
500
499
TrackEventInternal::WriteTrackDescriptor (
501
500
track, ctx.tls_inst_ ->trace_writer .get (), ctx.GetIncrementalState (),
502
501
*ctx.GetCustomTlsState (), TrackEventInternal::GetTraceTime ());
@@ -1047,7 +1046,7 @@ class TrackEventDataSource
1047
1046
Lambda lambda) PERFETTO_ALWAYS_INLINE {
1048
1047
using CatTraits = CategoryTraits<CategoryType>;
1049
1048
if (CatTraits::kIsDynamic ) {
1050
- Base::template TraceWithInstances (instances, std::move (lambda));
1049
+ Base::TraceWithInstances (instances, std::move (lambda));
1051
1050
} else {
1052
1051
Base::template TraceWithInstances<CategoryTracePointTraits>(
1053
1052
instances, std::move (lambda), {CatTraits::GetStaticIndex (category)});
@@ -1061,7 +1060,7 @@ class TrackEventDataSource
1061
1060
const TrackType& track,
1062
1061
std::function<void (protos::pbzero::TrackDescriptor*)> callback) {
1063
1062
TrackRegistry::Get ()->UpdateTrack (track, std::move (callback));
1064
- Base::template Trace ([&](typename Base::TraceContext ctx) {
1063
+ Base::Trace ([&](typename Base::TraceContext ctx) {
1065
1064
TrackEventInternal::WriteTrackDescriptor (
1066
1065
track, ctx.tls_inst_ ->trace_writer .get (), ctx.GetIncrementalState (),
1067
1066
*ctx.GetCustomTlsState (), TrackEventInternal::GetTraceTime ());
0 commit comments