read the worker's peak rss in KiB on every platform, as bun 1.4 reports it on macos too
Signed-off-by: dawn <90008@klbr.net>
639 unmodified linesExpand all64064164264364464564664464564664764864969 unmodified lines639 unmodified linesExpand all ...stats, render_ms: Math.round(stats.render_ms), heap_peak_mb: Math.round(heapPeak / 1_048_576), rss_mb: Math.round(process.memoryUsage().rss / 1_048_576), // the worker's peak since it started, so the repo it jumps on is the one that spiked. // KiB, but bun on macos passes the kernel's bytes through max_rss_mb: Math.round(process.resourceUsage().maxRSS / (process.versions.bun && process.platform === "darwin" ? 1_048_576 : 1024)) // the worker's peak since it started, so the repo it jumps on is the one that spiked max_rss_mb: Math.round(process.resourceUsage().maxRSS / 1024) };};
// a user's page: their profile and the repos this knot hosts for them, at the url of the69 unmodified lines