File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/core/src/shared/utilities Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,17 @@ export class ChildProcessTracker {
101101
102102 private async checkProcessUsage ( pid : number ) : Promise < void > {
103103 if ( ! this . #pids. has ( pid ) ) {
104- ChildProcessTracker . logger . warn ( `ChildProcess: Missing process with id ${ pid } ` )
104+ ChildProcessTracker . logger . warn ( `Missing process with id ${ pid } ` )
105105 return
106106 }
107107 const stats = await this . getUsage ( pid )
108108 if ( stats ) {
109109 ChildProcessTracker . logger . debug ( `stats for ${ pid } : %O` , stats )
110110 if ( stats . memory > ChildProcessTracker . thresholds . memory ) {
111- ChildProcessTracker . logger . warn (
112- `ChildProcess: Process ${ pid } exceeded memory threshold: ${ stats . memory } `
113- )
111+ ChildProcessTracker . logger . warn ( `Process ${ pid } exceeded memory threshold: ${ stats . memory } ` )
114112 }
115113 if ( stats . cpu > ChildProcessTracker . thresholds . cpu ) {
116- ChildProcessTracker . logger . warn ( `ChildProcess: Process ${ pid } exceeded cpu threshold: ${ stats . cpu } ` )
114+ ChildProcessTracker . logger . warn ( `Process ${ pid } exceeded cpu threshold: ${ stats . cpu } ` )
117115 }
118116 }
119117 }
@@ -186,7 +184,7 @@ export class ChildProcessTracker {
186184 // isWin() leads to circular dependency.
187185 return process . platform === 'win32' ? getWindowsUsage ( ) : getUnixUsage ( )
188186 } catch ( e ) {
189- ChildProcessTracker . logger . warn ( `ChildProcess: Failed to get process stats for ${ pid } : ${ e } ` )
187+ ChildProcessTracker . logger . warn ( `Failed to get process stats for ${ pid } : ${ e } ` )
190188 return { cpu : 0 , memory : 0 }
191189 }
192190 }
You can’t perform that action at this time.
0 commit comments