#include "components/performance_manager/public/resource_attribution/cpu_proportion_tracker.h"
#include <algorithm>
#include <utility>
#include "base/check.h"
#include "base/functional/callback.h"
namespace resource_attribution {
CPUProportionTracker::CPUProportionTracker(
ContextFilterCallback context_filter,
CPUProportionType cpu_proportion_type)
: … { … }
CPUProportionTracker::~CPUProportionTracker() = default;
void CPUProportionTracker::StartFirstInterval(base::TimeTicks time,
const QueryResultMap& results) { … }
std::map<ResourceContext, double> CPUProportionTracker::StartNextInterval(
base::TimeTicks time,
const QueryResultMap& results) { … }
void CPUProportionTracker::Stop() { … }
bool CPUProportionTracker::IsTracking() const { … }
base::TimeDelta CPUProportionTracker::GetCumulativeCPU(
const CPUTimeResult& cpu_time_result) const { … }
}