mirror of https://github.com/nodejs/node.git
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;
|
|
}
|