authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-07-02 01:12:19 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-07-02 01:12:19 -07:00
log8663a5a12e0122a6ecd9038be2cbb22364276377
tree27930d00ca054e087874d025393ff14bc0d6d12b
parentb40045e5dd6e7c9e7c0f173d33b0b878ebf55c2b
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

make these fns not inline


5 files changed, 10 insertions(+), 10 deletions(-)

src/chrome.zig+2-2
......@@ -42,7 +42,7 @@ pub fn deinit_thread() void {
4242 buffered_writer.flush() catch {};
4343}
4444
45pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
45pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
4646 buffered_writer.print(
4747 \\{{"cat":"function", "name":"{s}:{d}:{d} ({s})
4848 ++ ifmt ++
......@@ -62,7 +62,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons
6262 ) catch {};
6363}
6464
65pub inline fn trace_end(ctx: tracer.Ctx) void {
65pub fn trace_end(ctx: tracer.Ctx) void {
6666 _ = ctx;
6767 buffered_writer.print(
6868 \\{{"cat":"function", "ph": "E", "pid": {d}, "tid": {d}, "ts": {d}}},
src/log.zig+2-2
......@@ -14,11 +14,11 @@ pub fn init_thread(args: struct {}) !void {
1414
1515pub fn deinit_thread() void {}
1616
17pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
17pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
1818 log.debug("{s}:{d}:{d} ({s})" ++ ifmt, .{ src.file, src.line, src.column, src.fn_name } ++ iargs);
1919}
2020
21pub inline fn trace_end(ctx: tracer.Ctx) void {
21pub fn trace_end(ctx: tracer.Ctx) void {
2222 _ = ctx;
2323}
2424
src/mod.zig+2-2
......@@ -45,7 +45,7 @@ pub fn deinit_thread() void {
4545 started = false;
4646}
4747
48pub inline fn trace(src: std.builtin.SourceLocation, comptime fmt: []const u8, args: anytype) Ctx {
48pub fn trace(src: std.builtin.SourceLocation, comptime fmt: []const u8, args: anytype) Ctx {
4949 return .{
5050 .src = src,
5151 .data = if (!started) undefined else impl.trace_begin(src, fmt, args),
......@@ -56,7 +56,7 @@ pub const Ctx = struct {
5656 src: std.builtin.SourceLocation,
5757 data: impl.Data,
5858
59 pub inline fn end(self: Ctx) void {
59 pub fn end(self: Ctx) void {
6060 if (!started) return;
6161 impl.trace_end(self);
6262 }
src/none.zig+2-2
......@@ -14,13 +14,13 @@ pub fn init_thread(args: struct {}) !void {
1414
1515pub fn deinit_thread() void {}
1616
17pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
17pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
1818 _ = src;
1919 _ = ifmt;
2020 _ = iargs;
2121}
2222
23pub inline fn trace_end(ctx: tracer.Ctx) void {
23pub fn trace_end(ctx: tracer.Ctx) void {
2424 _ = ctx;
2525}
2626
src/spall.zig+2-2
......@@ -41,7 +41,7 @@ pub fn deinit_thread() void {
4141 buffered_writer.flush() catch {};
4242}
4343
44pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
44pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, iargs: anytype) void {
4545 const fmt = "{s}:{d}:{d} ({s})" ++ ifmt;
4646 const args = .{ src.file, src.line, src.column, src.fn_name };
4747 buffered_writer.writeStruct(BeginEvent{
......@@ -54,7 +54,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons
5454 buffered_writer.print(fmt, args ++ iargs) catch return;
5555}
5656
57pub inline fn trace_end(ctx: tracer.Ctx) void {
57pub fn trace_end(ctx: tracer.Ctx) void {
5858 _ = ctx;
5959 buffered_writer.writeStruct(EndEvent{
6060 .pid = @intCast(pid),