Add libdom RSS and v8 total_physical_size to testing --json output

https://github.com/lightpanda-io/browser/issues/1057
This commit is contained in:
Karl Seguin
2025-09-19 10:21:39 +08:00
parent 823b7f0670
commit 47710210bd
3 changed files with 45 additions and 2 deletions

View File

@@ -379,6 +379,8 @@ pub fn setup() !void {
test_session = try test_browser.newSession();
}
pub fn shutdown() void {
@import("root").v8_peak_memory = test_browser.env.isolate.getHeapStatistics().total_physical_size;
@import("root").libdom_memory = @import("browser/mimalloc.zig").getRSS();
test_browser.deinit();
test_app.deinit();
}