Added
Link Here
|
1 |
--- third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h.orig 2024-06-13 07:45:23 UTC |
2 |
+++ third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h |
3 |
@@ -328,13 +328,13 @@ class TrackEventDataSource |
4 |
} |
5 |
|
6 |
static void Flush() { |
7 |
- Base::template Trace([](typename Base::TraceContext ctx) { ctx.Flush(); }); |
8 |
+ Base::Trace([](typename Base::TraceContext ctx) { ctx.Flush(); }); |
9 |
} |
10 |
|
11 |
// Determine if *any* tracing category is enabled. |
12 |
static bool IsEnabled() { |
13 |
bool enabled = false; |
14 |
- Base::template CallIfEnabled( |
15 |
+ Base::CallIfEnabled( |
16 |
[&](uint32_t /*instances*/) { enabled = true; }); |
17 |
return enabled; |
18 |
} |
19 |
@@ -349,7 +349,7 @@ class TrackEventDataSource |
20 |
static bool IsDynamicCategoryEnabled( |
21 |
const DynamicCategory& dynamic_category) { |
22 |
bool enabled = false; |
23 |
- Base::template Trace([&](typename Base::TraceContext ctx) { |
24 |
+ Base::Trace([&](typename Base::TraceContext ctx) { |
25 |
enabled = enabled || IsDynamicCategoryEnabled(&ctx, dynamic_category); |
26 |
}); |
27 |
return enabled; |
28 |
@@ -496,7 +496,7 @@ class TrackEventDataSource |
29 |
const protos::gen::TrackDescriptor& desc) { |
30 |
PERFETTO_DCHECK(track.uuid == desc.uuid()); |
31 |
TrackRegistry::Get()->UpdateTrack(track, desc.SerializeAsString()); |
32 |
- Base::template Trace([&](typename Base::TraceContext ctx) { |
33 |
+ Base::Trace([&](typename Base::TraceContext ctx) { |
34 |
TrackEventInternal::WriteTrackDescriptor( |
35 |
track, ctx.tls_inst_->trace_writer.get(), ctx.GetIncrementalState(), |
36 |
*ctx.GetCustomTlsState(), TrackEventInternal::GetTraceTime()); |
37 |
@@ -1047,7 +1047,7 @@ class TrackEventDataSource |
38 |
Lambda lambda) PERFETTO_ALWAYS_INLINE { |
39 |
using CatTraits = CategoryTraits<CategoryType>; |
40 |
if (CatTraits::kIsDynamic) { |
41 |
- Base::template TraceWithInstances(instances, std::move(lambda)); |
42 |
+ Base::TraceWithInstances(instances, std::move(lambda)); |
43 |
} else { |
44 |
Base::template TraceWithInstances<CategoryTracePointTraits>( |
45 |
instances, std::move(lambda), {CatTraits::GetStaticIndex(category)}); |
46 |
@@ -1061,7 +1061,7 @@ class TrackEventDataSource |
47 |
const TrackType& track, |
48 |
std::function<void(protos::pbzero::TrackDescriptor*)> callback) { |
49 |
TrackRegistry::Get()->UpdateTrack(track, std::move(callback)); |
50 |
- Base::template Trace([&](typename Base::TraceContext ctx) { |
51 |
+ Base::Trace([&](typename Base::TraceContext ctx) { |
52 |
TrackEventInternal::WriteTrackDescriptor( |
53 |
track, ctx.tls_inst_->trace_writer.get(), ctx.GetIncrementalState(), |
54 |
*ctx.GetCustomTlsState(), TrackEventInternal::GetTraceTime()); |