feat: add memory to app.getAppMetrics() (#18831)

This commit is contained in:
Milan Burda 2019-07-23 22:41:59 +02:00 committed by Shelley Vohr
parent 2c383b51c1
commit 103b38650f
8 changed files with 149 additions and 1 deletions

View file

@ -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')
}