mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Merge pull request #1073 from lightpanda-io/increase_mimalloc_get_rss_buffer
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Seems 4K isn't always enough
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn getRSS() i64 {
|
|||||||
// that this requires parsing some unstructured data
|
// that this requires parsing some unstructured data
|
||||||
@compileError("Only available in debug builds");
|
@compileError("Only available in debug builds");
|
||||||
}
|
}
|
||||||
var buf: [4096]u8 = undefined;
|
var buf: [1024 * 8]u8 = undefined;
|
||||||
var fba = std.heap.FixedBufferAllocator.init(&buf);
|
var fba = std.heap.FixedBufferAllocator.init(&buf);
|
||||||
var writer = std.Io.Writer.Allocating.init(fba.allocator());
|
var writer = std.Io.Writer.Allocating.init(fba.allocator());
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ pub fn getRSS() i64 {
|
|||||||
fn print(msg: [*c]const u8, data: ?*anyopaque) callconv(.c) void {
|
fn print(msg: [*c]const u8, data: ?*anyopaque) callconv(.c) void {
|
||||||
const w: *std.Io.Writer = @ptrCast(@alignCast(data.?));
|
const w: *std.Io.Writer = @ptrCast(@alignCast(data.?));
|
||||||
w.writeAll(std.mem.span(msg)) catch |err| {
|
w.writeAll(std.mem.span(msg)) catch |err| {
|
||||||
std.debug.print("Failed to write mimalloc data: {}", .{err});
|
std.debug.print("Failed to write mimalloc data: {}\n", .{err});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}.print, &writer.writer);
|
}.print, &writer.writer);
|
||||||
|
|||||||
Reference in New Issue
Block a user