Further CPU Experimental Changes
This commit is contained in:
@@ -10,6 +10,7 @@ import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { CollectorPlugin } from './plugin.js'
|
||||
import { registerChart } from '../../../shared/metrics.js'
|
||||
import { readFileBuf } from '../../utils/fd-cache.js'
|
||||
import { execFile } from '../../utils/exec.js'
|
||||
import logger from '../../utils/logger.js'
|
||||
|
||||
@@ -39,11 +40,7 @@ export function isDmcacheEnabled() {
|
||||
}
|
||||
|
||||
function readFile(p) {
|
||||
try {
|
||||
return fs.readFileSync(p, 'utf8')
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
return readFileBuf(p)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user