feat: add process.getBlinkMemoryInfo() (#17762)
This commit is contained in:
parent
2dbd2c07e4
commit
a1226d75ff
6 changed files with 42 additions and 0 deletions
|
@ -38,6 +38,15 @@ describe('process module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('process.getBlinkMemoryInfo()', () => {
|
||||
it('returns blink memory information object', () => {
|
||||
const heapStats = process.getBlinkMemoryInfo()
|
||||
expect(heapStats.allocated).to.be.a('number')
|
||||
expect(heapStats.marked).to.be.a('number')
|
||||
expect(heapStats.total).to.be.a('number')
|
||||
})
|
||||
})
|
||||
|
||||
describe('process.getProcessMemoryInfo()', async () => {
|
||||
it('resolves promise successfully with valid data', async () => {
|
||||
const memoryInfo = await process.getProcessMemoryInfo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue