Add allocation info in the test workflow
This commit is contained in:
parent
6dc05df0ac
commit
62ab67f751
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
export PATH=./zig:$PATH
|
export PATH=./zig:$PATH
|
||||||
zig build
|
zig build -Dallocation_info
|
||||||
|
|
||||||
FILE=zig-cache/bin/zls
|
FILE=zig-cache/bin/zls
|
||||||
|
|
||||||
|
@ -265,7 +265,10 @@ fn newDocument(self: *DocumentStore, uri: []const u8, text: []u8) anyerror!*Hand
|
|||||||
// This includes the last separator
|
// This includes the last separator
|
||||||
curr_path = curr_path[0 .. idx + 1];
|
curr_path = curr_path[0 .. idx + 1];
|
||||||
|
|
||||||
var folder = try std.fs.cwd().openDir(curr_path, .{});
|
var folder = std.fs.cwd().openDir(curr_path, .{}) catch |err| switch(err) {
|
||||||
|
error.FileNotFound => continue,
|
||||||
|
else => return err,
|
||||||
|
};
|
||||||
defer folder.close();
|
defer folder.close();
|
||||||
|
|
||||||
// Try to open the file, read it and add the new document if we find it.
|
// Try to open the file, read it and add the new document if we find it.
|
||||||
|
@ -1643,7 +1643,7 @@ pub fn main() anyerror!void {
|
|||||||
arena.state.buffer_list = .{};
|
arena.state.buffer_list = .{};
|
||||||
|
|
||||||
if (debug_alloc) |dbg| {
|
if (debug_alloc) |dbg| {
|
||||||
std.log.notice(.main, "\n{}\n", .{dbg.info});
|
std.log.debug(.main, "\n{}\n", .{dbg.info});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user