Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Summary
Public constructors |
|
Returns a new builder copy with the same values as the params.
|
Public constructors
Builder
Builder(params: CpuHeadroomParams)
Returns a new builder copy with the same values as the params.
Public methods
setCalculationType
fun setCalculationType(calculationType: Int): CpuHeadroomParams.Builder
Sets the headroom calculation type.
Exceptions |
java.lang.IllegalArgumentException |
if the type is invalid. |
setCalculationWindowMillis
fun setCalculationWindowMillis(windowMillis: Int): CpuHeadroomParams.Builder
Sets the headroom calculation window size in milliseconds.
Exceptions |
java.lang.IllegalArgumentException |
if the window is invalid. |
setTids
fun setTids(vararg tids: Int): CpuHeadroomParams.Builder
Sets the thread TIDs to track.
The TIDs should belong to the same of the process that will make the headroom call. And they should not have different core affinity.
If not set or set to empty, the headroom will be based on the PID of the process making the call.
Exceptions |
java.lang.IllegalArgumentException |
if the TID is not positive. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-13 UTC."],[],[]]