feat: add cumulativeCPUUsage to AppMetrics and CPUUsage (#41819)
This allows apps to measure their CPU usage over any given period without worrying about other calls affecting the output, as they would with `percentCPUUsage`.
This commit is contained in:
parent
f35a755086
commit
d8e4579e3c
5 changed files with 25 additions and 6 deletions
|
@ -1442,6 +1442,7 @@ describe('app module', () => {
|
|||
|
||||
types.push(entry.type);
|
||||
expect(entry.cpu).to.have.ownProperty('percentCPUUsage').that.is.a('number');
|
||||
expect(entry.cpu).to.have.ownProperty('cumulativeCPUUsage').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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue