Files
Andy Hanson 89fa98a712 WIP
WIP

WIP

WIP

WIP

WIP

WIP: Remove trailing newlines

WIP

WIP

WIP

WIP

WIP

WIP

WIP

WIP: All tests pass

WIP

WIP

WIP
2016-11-28 11:16:06 -08:00

26 lines
724 B
TypeScript

// Type definitions for usage
// Project: https://github.com/arunoda/node-usage
// Definitions by: Pascal Vomhoff <https://github.com/pvomhoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface ResultObject {
memory: number;
memoryInfo: {
rss: number;
vsize: number;
};
cpu: number;
}
export interface Options {
keepHistory: boolean;
}
export declare function lookup(pid: number, callback: (err: Error, result: ResultObject) => void): void;
export declare function lookup(pid: number, options: Options, callback: (err: Error, result: ResultObject) => void): void;
//Only availible on linux
export declare function clearHistory(pid?: number): void;