#include "cc/base/histograms.h"
#include <stdint.h>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <limits>
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/synchronization/lock.h"
namespace cc {
static base::LazyInstance<base::Lock>::Leaky g_client_name_lock = …;
static const char* g_client_name = …;
static bool g_multiple_client_names_set = …;
void SetClientNameForMetrics(const char* client_name) { … }
const char* GetClientNameForMetrics() { … }
static const int64_t kMinimumTimeMicroseconds = …;
ScopedUMAHistogramAreaTimerBase::ScopedUMAHistogramAreaTimerBase() : … { … }
ScopedUMAHistogramAreaTimerBase::~ScopedUMAHistogramAreaTimerBase() = default;
bool ScopedUMAHistogramAreaTimerBase::GetHistogramValues(
Sample* time_microseconds,
Sample* pixels_per_ms) const { … }
bool ScopedUMAHistogramAreaTimerBase::GetHistogramValues(
base::TimeDelta elapsed,
int area,
Sample* time_microseconds,
Sample* pixels_per_ms) { … }
}