[*] metrics(Part 3) Don't report CPU usage on every reportEvent

Summary: See title

Test Plan: Manual

Reviewers: spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3968
This commit is contained in:
Juan Tejada 2017-02-17 12:58:37 -08:00
parent 301766722a
commit dc2f032325

View file

@ -34,7 +34,6 @@ class MetricsReporter {
}
const logger = global.Logger.child({accountEmail: info.emailAddress})
const {workingSetSize, privateBytes, sharedBytes} = process.getProcessMemoryInfo();
const percentCPU = await this.collectCPUUsage();
info.hostname = os.hostname();
info.cpus = os.cpus().length;
@ -44,7 +43,6 @@ class MetricsReporter {
info.processWorkingSetSize = workingSetSize;
info.processPrivateBytes = privateBytes;
info.processSharedBytes = sharedBytes;
info.processPercentCPU = percentCPU;
try {
if (isClientEnv()) {