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 {
101
101
102
102
private async checkProcessUsage ( pid : number ) : Promise < void > {
103
103
if ( ! this . #pids. has ( pid ) ) {
104
- ChildProcessTracker . logger . warn ( `ChildProcess: Missing process with id ${ pid } ` )
104
+ ChildProcessTracker . logger . warn ( `Missing process with id ${ pid } ` )
105
105
return
106
106
}
107
107
const stats = await this . getUsage ( pid )
108
108
if ( stats ) {
109
109
ChildProcessTracker . logger . debug ( `stats for ${ pid } : %O` , stats )
110
110
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 } ` )
114
112
}
115
113
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 } ` )
117
115
}
118
116
}
119
117
}
@@ -186,7 +184,7 @@ export class ChildProcessTracker {
186
184
// isWin() leads to circular dependency.
187
185
return process . platform === 'win32' ? getWindowsUsage ( ) : getUnixUsage ( )
188
186
} 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 } ` )
190
188
return { cpu : 0 , memory : 0 }
191
189
}
192
190
}
You can’t perform that action at this time.
0 commit comments