mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
422 B
TypeScript
13 lines
422 B
TypeScript
// Type definitions for pidusage 1.1
|
|
// Project: https://github.com/soyuka/pidusage
|
|
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface Stat {
|
|
cpu: number;
|
|
memory: number;
|
|
}
|
|
|
|
export function stat(pid: number, callback: (error: Error, stat: Stat) => void): void;
|
|
export function unmonitor(pid: number): void;
|