Browse Source
Merge pull request #10265 from smatvienko-tb/feature/js-executor-memory-usage-log-single-line
js executor log memory usage as a single line
pull/10271/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
msa/js-executor/api/jsInvokeMessageProcessor.ts
|
|
|
@ -169,7 +169,7 @@ export class JsInvokeMessageProcessor { |
|
|
|
this.logger.info('[%s] Executing script body: [%s]', scriptId, invokeRequest.scriptBody); |
|
|
|
} |
|
|
|
if (this.executedScriptsCounter % memoryUsageTraceFrequency == 0) { |
|
|
|
this.logger.info('Current memory usage: [%s]', process.memoryUsage()); |
|
|
|
this.logger.info('Current memory usage: %s', JSON.stringify(process.memoryUsage())); |
|
|
|
} |
|
|
|
|
|
|
|
this.getOrCompileScript(scriptId, invokeRequest.scriptBody).then( |
|
|
|
|