Report process cpu/memory usage in debug log
This commit is contained in:
parent
8f675cdc16
commit
1b052ad16b
7 changed files with 80 additions and 67 deletions
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import pino from 'pino';
|
||||
import type { ProcessMetric } from 'electron';
|
||||
import { isRecord } from '../util/isRecord';
|
||||
import { redactAll } from '../util/privacy';
|
||||
import { missingCaseError } from '../util/missingCaseError';
|
||||
|
@ -15,6 +16,7 @@ export type FetchLogIpcData = {
|
|||
remoteConfig: Record<string, unknown>;
|
||||
statistics: Record<string, unknown>;
|
||||
user: Record<string, unknown>;
|
||||
appMetrics: ReadonlyArray<ProcessMetric>;
|
||||
|
||||
// We expect `logEntries` to be `Array<LogEntryType>`, but we don't validate that
|
||||
// upfront—we only validate it when we go to log each line. This improves the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue