chromium/third_party/blink/renderer/platform/scheduler/common/thread_load_tracker.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Calculates length of intersection of two time intervals.
base::TimeDelta Intersection(base::TimeTicks left1,
                             base::TimeTicks right1,
                             base::TimeTicks left2,
                             base::TimeTicks right2) {}

}  // namespace

void ThreadLoadTracker::Advance(base::TimeTicks now, TaskState task_state) {}

double ThreadLoadTracker::Load() {}

}  // namespace scheduler
}  // namespace blink