Line
Link Here
|
0 |
-- a/src/3rdparty/chromium/third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h |
0 |
++ b/src/3rdparty/chromium/third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h |
Lines 329-333
Link Here
|
329 |
|
329 |
|
330 |
static void Flush() { |
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 |
|
Lines 335-340
Link Here
|
335 |
static bool IsEnabled() { |
335 |
static bool IsEnabled() { |
336 |
bool enabled = false; |
336 |
bool enabled = false; |
337 |
Base::template CallIfEnabled( |
337 |
Base::CallIfEnabled([&](uint32_t /*instances*/) { enabled = true; }); |
338 |
[&](uint32_t /*instances*/) { enabled = true; }); |
|
|
339 |
return enabled; |
338 |
return enabled; |
340 |
} |
339 |
} |
Lines 350-354
Link Here
|
350 |
const DynamicCategory& dynamic_category) { |
349 |
const DynamicCategory& dynamic_category) { |
351 |
bool enabled = false; |
350 |
bool enabled = false; |
352 |
Base::template Trace([&](typename Base::TraceContext ctx) { |
351 |
Base::Trace([&](typename Base::TraceContext ctx) { |
353 |
enabled = enabled || IsDynamicCategoryEnabled(&ctx, dynamic_category); |
352 |
enabled = enabled || IsDynamicCategoryEnabled(&ctx, dynamic_category); |
354 |
}); |
353 |
}); |
Lines 497-501
Link Here
|
497 |
PERFETTO_DCHECK(track.uuid == desc.uuid()); |
496 |
PERFETTO_DCHECK(track.uuid == desc.uuid()); |
498 |
TrackRegistry::Get()->UpdateTrack(track, desc.SerializeAsString()); |
497 |
TrackRegistry::Get()->UpdateTrack(track, desc.SerializeAsString()); |
499 |
Base::template Trace([&](typename Base::TraceContext ctx) { |
498 |
Base::Trace([&](typename Base::TraceContext ctx) { |
500 |
TrackEventInternal::WriteTrackDescriptor( |
499 |
TrackEventInternal::WriteTrackDescriptor( |
501 |
track, ctx.tls_inst_->trace_writer.get(), ctx.GetIncrementalState(), |
500 |
track, ctx.tls_inst_->trace_writer.get(), ctx.GetIncrementalState(), |
Lines 1048-1052
Link Here
|
1048 |
using CatTraits = CategoryTraits<CategoryType>; |
1047 |
using CatTraits = CategoryTraits<CategoryType>; |
1049 |
if (CatTraits::kIsDynamic) { |
1048 |
if (CatTraits::kIsDynamic) { |
1050 |
Base::template TraceWithInstances(instances, std::move(lambda)); |
1049 |
Base::TraceWithInstances(instances, std::move(lambda)); |
1051 |
} else { |
1050 |
} else { |
1052 |
Base::template TraceWithInstances<CategoryTracePointTraits>( |
1051 |
Base::template TraceWithInstances<CategoryTracePointTraits>( |