forked from mirrors/gecko-dev
PerformanceHintManager is an Android API that allows the caller to create a PerformanceHintSession, representing a workload shared by a group of threads that should be completed within a target duration each cycle. The actual duration spent working is reported each cycle, and the system can then adjust scheduling of the threads accordingly in order to hit the target going forward. This patch adds the API to HAL along with an Android implementation (and a nop fallback implementation for other platforms). Differential Revision: https://phabricator.services.mozilla.com/D186238
19 lines
623 B
C++
19 lines
623 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set sw=2 ts=8 et ft=cpp : */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "Hal.h"
|
|
|
|
namespace mozilla {
|
|
namespace hal_impl {
|
|
|
|
UniquePtr<hal::PerformanceHintSession> CreatePerformanceHintSession(
|
|
const nsTArray<PlatformThreadHandle>& aThreads,
|
|
mozilla::TimeDuration aTargetWorkDuration) {
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace hal_impl
|
|
} // namespace mozilla
|