Remove 'process' usage
Summary: Removed process, adbkit and electron usages that were still remaining. Verified changes by disabling the built-in module stubbing (will be cleaned up further later in this stack). Reviewed By: aigoncharov Differential Revision: D33019083 fbshipit-source-id: 8bfce31f4b5ed349cb4fd86d34c9b41b9b8b8360
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3ef1923b29
commit
ac9080abac
@@ -27,6 +27,7 @@ import {setupMenuBar} from './setupMenuBar';
|
||||
import {FlipperServer, FlipperServerConfig} from 'flipper-common';
|
||||
import type {Icon, RenderHost} from 'flipper-ui-core';
|
||||
import {getLocalIconUrl} from '../utils/icons';
|
||||
import {getCPUUsage} from 'process';
|
||||
|
||||
export function initializeElectron(
|
||||
flipperServer: FlipperServer,
|
||||
@@ -202,6 +203,9 @@ export function initializeElectron(
|
||||
}
|
||||
delete global.electronRequire.cache[resolvedPath];
|
||||
},
|
||||
getPercentCPUUsage() {
|
||||
return getCPUUsage().percentCPUUsage;
|
||||
},
|
||||
} as RenderHost;
|
||||
|
||||
setupMenuBar();
|
||||
|
||||
Reference in New Issue
Block a user