This commit is contained in:
wujingtao
2018-08-17 15:16:00 +08:00
parent bdd4259622
commit 9d472aa6e9
4 changed files with 0 additions and 49 deletions
-12
View File
@@ -1,12 +0,0 @@
// 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;
-8
View File
@@ -1,8 +0,0 @@
import pusage = require("pidusage");
pusage.stat(0, (err: Error, stat: pusage.Stat) => {
const cpu = stat.cpu;
const memory = stat.memory;
});
pusage.unmonitor(0);
-26
View File
@@ -1,26 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../../",
"typeRoots": [
"../../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"pidusage": [ "pidusage/v1.1" ]
},
},
"files": [
"index.d.ts",
"pidusage-tests.ts"
]
}
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "dtslint/dt.json"
}