PR-URL: https://github.com/nodejs/node/pull/56467 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
16 lines
341 B
TypeScript
16 lines
341 B
TypeScript
interface CpuUsageValue {
|
|
user: number;
|
|
system: number;
|
|
}
|
|
|
|
declare namespace InternalProcessBinding {
|
|
interface Process {
|
|
cpuUsage(previousValue?: CpuUsageValue): CpuUsageValue;
|
|
threadCpuUsage(previousValue?: CpuUsageValue): CpuUsageValue;
|
|
}
|
|
}
|
|
|
|
export interface ProcessBinding {
|
|
process: InternalProcessBinding.Process;
|
|
}
|