#include "third_party/blink/renderer/platform/scheduler/common/thread_load_tracker.h"
#include <algorithm>
namespace blink {
namespace scheduler {
ThreadLoadTracker::ThreadLoadTracker(base::TimeTicks now,
const Callback& callback,
base::TimeDelta reporting_interval)
: … { … }
ThreadLoadTracker::~ThreadLoadTracker() = default;
void ThreadLoadTracker::Pause(base::TimeTicks now) { … }
void ThreadLoadTracker::Resume(base::TimeTicks now) { … }
void ThreadLoadTracker::Reset(base::TimeTicks now) { … }
void ThreadLoadTracker::RecordTaskTime(base::TimeTicks start_time,
base::TimeTicks end_time) { … }
void ThreadLoadTracker::RecordIdle(base::TimeTicks now) { … }
namespace {
base::TimeDelta Intersection(base::TimeTicks left1,
base::TimeTicks right1,
base::TimeTicks left2,
base::TimeTicks right2) { … }
}
void ThreadLoadTracker::Advance(base::TimeTicks now, TaskState task_state) { … }
double ThreadLoadTracker::Load() { … }
}
}