| Index: base/trace_event/trace_log.cc
|
| diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
|
| index a0b12fbc5426fc1f357b4be8eb219a690ca2c647..068e7c63695ce4517910d4fa5cb80c9c41fb6642 100644
|
| --- a/base/trace_event/trace_log.cc
|
| +++ b/base/trace_event/trace_log.cc
|
| @@ -1316,7 +1316,8 @@ TraceEventHandle TraceLog::AddTraceEventWithThreadIdAndTimestamp(
|
|
|
| // TODO(primiano): Add support for events with copied name crbug.com/581078
|
| if (!(flags & TRACE_EVENT_FLAG_COPY)) {
|
| - if (AllocationContextTracker::capture_enabled()) {
|
| + if (AllocationContextTracker::capture_mode() ==
|
| + AllocationContextTracker::CaptureMode::PSEUDO_STACK) {
|
| if (phase == TRACE_EVENT_PHASE_BEGIN ||
|
| phase == TRACE_EVENT_PHASE_COMPLETE) {
|
| AllocationContextTracker::GetInstanceForCurrentThread()
|
| @@ -1447,9 +1448,10 @@ void TraceLog::UpdateTraceEventDuration(
|
| EventToConsoleMessage(TRACE_EVENT_PHASE_END, now, trace_event);
|
| }
|
|
|
| - if (base::trace_event::AllocationContextTracker::capture_enabled()) {
|
| + if (AllocationContextTracker::capture_mode() ==
|
| + AllocationContextTracker::CaptureMode::PSEUDO_STACK) {
|
| // The corresponding push is in |AddTraceEventWithThreadIdAndTimestamp|.
|
| - base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| + AllocationContextTracker::GetInstanceForCurrentThread()
|
| ->PopPseudoStackFrame(name);
|
| }
|
| }
|
|
|