feat: add memory to app.getAppMetrics() (#18831)
This commit is contained in:
parent
2c383b51c1
commit
103b38650f
8 changed files with 149 additions and 1 deletions
|
@ -966,6 +966,13 @@ describe('app module', () => {
|
|||
expect(entry.cpu).to.have.ownProperty('percentCPUUsage').that.is.a('number')
|
||||
expect(entry.cpu).to.have.ownProperty('idleWakeupsPerSecond').that.is.a('number')
|
||||
|
||||
expect(entry.memory).to.have.property('workingSetSize').that.is.greaterThan(0)
|
||||
expect(entry.memory).to.have.property('peakWorkingSetSize').that.is.greaterThan(0)
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
expect(entry.memory).to.have.property('privateBytes').that.is.greaterThan(0)
|
||||
}
|
||||
|
||||
if (process.platform !== 'linux') {
|
||||
expect(entry.sandboxed).to.be.a('boolean')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue