pyre-cli 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{anomaliesCmd-TO52YY2B.js → anomaliesCmd-25OFKYPK.js} +1 -1
- package/dist/{chunk-EQZCK2VC.js → chunk-QOLZ7T32.js} +9 -0
- package/dist/{collectors-KNEN4YJD.js → collectors-VACLPHRP.js} +1 -1
- package/dist/index.js +418 -80
- package/package.json +1 -1
- package/src/anomaliesCmd.ts +1 -1
- package/src/formatters/render.ts +127 -38
- package/src/formatters/types.ts +6 -0
- package/src/live/input.ts +149 -5
- package/src/live/render.ts +145 -3
- package/src/live/state.ts +7 -0
- package/src/live/types.ts +1 -1
- package/src/monitors/collectors.ts +11 -0
|
@@ -13,7 +13,7 @@ function runAnomaliesDigest(opts = {}) {
|
|
|
13
13
|
console.log(chalk.dim(" Enable background logging with `pyre --log` to record history.\n"));
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
|
-
const files = fs.readdirSync(dir).filter((f) => f.startsWith("pyre-
|
|
16
|
+
const files = fs.readdirSync(dir).filter((f) => f.startsWith("pyre-") && f.endsWith(".csv"));
|
|
17
17
|
if (files.length === 0) {
|
|
18
18
|
console.log(chalk.yellow(` No CSV logs found for range '${sinceStr}' in ${dir}.`));
|
|
19
19
|
console.log(chalk.dim(" Enable background logging with `pyre --log` to record history.\n"));
|
|
@@ -372,6 +372,15 @@ async function collectCpu() {
|
|
|
372
372
|
} catch {
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
+
if (frequency === 0) {
|
|
376
|
+
try {
|
|
377
|
+
const cpus = os.cpus();
|
|
378
|
+
if (cpus && cpus.length > 0 && cpus[0].speed) {
|
|
379
|
+
frequency = cpus[0].speed;
|
|
380
|
+
}
|
|
381
|
+
} catch {
|
|
382
|
+
}
|
|
383
|
+
}
|
|
375
384
|
let usage = 0;
|
|
376
385
|
try {
|
|
377
386
|
const cpus = os.cpus();
|