1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Linux `/proc` and `/sys` access.
//!
//! Split into two layers:
//! * `parse` — pure functions over `&[u8]`, unit-testable against fixtures
//! * `scan` — the IO layer, using thread-local scratch buffers
//!
//! Both are configured by a `root` path so tests can point at a fixture tree
//! instead of the live `/proc`.
;
/// Number of online CPUs, used to normalize CPU%.