@nxtedition/lib 21.0.5 → 21.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +4 -3
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -468,17 +468,18 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
468
468
|
rx.map(() => performance.eventLoopUtilization?.()),
|
|
469
469
|
rx.pairwise(),
|
|
470
470
|
rx.map(([elu1, elu2]) => {
|
|
471
|
+
const memory = process.memoryUsage()
|
|
472
|
+
|
|
471
473
|
let totalMemory
|
|
472
474
|
if (memoryUsageMap) {
|
|
473
475
|
totalMemory = {
|
|
474
|
-
rss:
|
|
476
|
+
rss: memory.rss,
|
|
475
477
|
heapTotal: 0,
|
|
476
478
|
heapUsed: 0,
|
|
477
479
|
external: 0,
|
|
478
480
|
arrayBuffers: 0,
|
|
479
481
|
}
|
|
480
482
|
for (const memoryUsage of memoryUsageMap.values()) {
|
|
481
|
-
totalMemory.rss += memoryUsage.rss
|
|
482
483
|
totalMemory.heapTotal += memoryUsage.heapTotal
|
|
483
484
|
totalMemory.heapUsed += memoryUsage.heapUsed
|
|
484
485
|
totalMemory.external += memoryUsage.external
|
|
@@ -491,7 +492,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
491
492
|
couch: couch?.stats,
|
|
492
493
|
lag: toobusy?.lag(),
|
|
493
494
|
version: process.version,
|
|
494
|
-
memory
|
|
495
|
+
memory,
|
|
495
496
|
totalMemory,
|
|
496
497
|
utilization: performance.eventLoopUtilization?.(elu2, elu1),
|
|
497
498
|
heap: v8.getHeapStatistics(),
|