mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-24 06:39:33 +01:00
fix: apply the review items for #692 at merge
host-sensors: never await the PowerShell RAM probe on a read; keep the resolved total and show the memory in use alone until it answers (test with a held PowerShell) test: rename the Windows sampler test that said the GPU counters are added "for good" test: make host-sensors.test.ts's @fileoverview describe what that file covers host-sensors: make the nvidiaSkipUntil JSDoc describe the back-off deadline docs: Settings Reference says the host readings live inside System Stats and nothing is fetched while it is off Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
23a9d78cdd
commit
7783fcd0ce
4 files changed
+81
-22
No files matched your search
@@ -1,6 +1,9 @@
|
||||
/**
|
||||
* @fileoverview The pure parsers behind the opt-in header readings (GPU, CPU clock), the route's
|
||||
* opt-in query handling, and the header display's defaults. No hardware needed.
|
||||
* @fileoverview The pure parsers behind the opt-in header readings (nvidia-smi, the amdgpu clock table,
|
||||
* cpufreq and /proc/cpuinfo, typeperf), readHostSensors reading nothing unless a reading is asked for, the
|
||||
* typeperf counter stream's life cycle (first sample, recycling, idle stop, back-off after a failed start,
|
||||
* no wait on a cold sampler by default, a late row from a replaced sampler), and the Windows sampler that
|
||||
* every browser shares. No hardware needed.
|
||||
*/
|
||||
import { EventEmitter } from 'node:events';
|
||||
import { PassThrough } from 'node:stream';
|
||||
@@ -233,7 +236,7 @@ describe('the Windows sampler shared by every browser', () => {
|
||||
expect(children[0].killed).toBe(false);
|
||||
});
|
||||
|
||||
it('adds the GPU counters once, for good, on a machine with no native GPU reader', async () => {
|
||||
it('adds the GPU counters with one restart on a machine with no native GPU reader, and keeps them while needed', async () => {
|
||||
const { children, source } = rig();
|
||||
void source.read();
|
||||
expect(children[0].counters).toEqual(windowsCounterList(false));
|
||||
|
||||
Reference in new issue
Block a user