mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add definition for "throng". * Fix tslint errors. * Add definition for "pidusage". * Remove definition for "throng". * Fix mistakes.
9 lines
168 B
TypeScript
9 lines
168 B
TypeScript
import pusage = require("pidusage");
|
|
|
|
pusage.stat(0, (err: Error, stat: pusage.Stat) => {
|
|
const cpu = stat.cpu;
|
|
const memory = stat.memory;
|
|
});
|
|
|
|
pusage.unmonitor(0);
|