mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 21:24:24 +08:00
[*] 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:
parent
301766722a
commit
dc2f032325
1 changed files with 0 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue