Experimental CPU Optimize Techniques
This commit is contained in:
@@ -11,13 +11,10 @@ import {
|
||||
makeCpuIdleChart,
|
||||
makeNumaNodeMemChart,
|
||||
} from '../../../shared/metrics.js'
|
||||
import { readFileCached } from '../../utils/fd-cache.js'
|
||||
|
||||
function readFile(p) {
|
||||
try {
|
||||
return fs.readFileSync(p, 'utf8')
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
return readFileCached(p)
|
||||
}
|
||||
|
||||
function rate(prev, cur, dtSec) {
|
||||
|
||||
Reference in New Issue
Block a user