1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
content / common / debug_utils.cc [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/debug_utils.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/numerics/safe_conversions.h"
namespace content {
void CaptureTraceForNavigationDebugScenario(DebugScenario scenario) {
LOG(ERROR) << "Hit debug scenario: " << base::strict_cast<int>(scenario);
UMA_HISTOGRAM_ENUMERATION("Stability.DebugScenario.Navigation", scenario);
}
} // namespace content