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 {...@@ -42,7 +42,7 @@ pub fn deinit_thread() void {
42 buffered_writer.flush() catch {};42 buffered_writer.flush() catch {};
43}43}
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 {
46 buffered_writer.print(46 buffered_writer.print(
47 \\{{"cat":"function", "name":"{s}:{d}:{d} ({s})47 \\{{"cat":"function", "name":"{s}:{d}:{d} ({s})
48 ++ ifmt ++48 ++ ifmt ++
...@@ -62,7 +62,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons...@@ -62,7 +62,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons
62 ) catch {};62 ) catch {};
63}63}
6464
65pub inline fn trace_end(ctx: tracer.Ctx) void {65pub fn trace_end(ctx: tracer.Ctx) void {
66 _ = ctx;66 _ = ctx;
67 buffered_writer.print(67 buffered_writer.print(
68 \\{{"cat":"function", "ph": "E", "pid": {d}, "tid": {d}, "ts": {d}}},68 \\{{"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 {...@@ -14,11 +14,11 @@ pub fn init_thread(args: struct {}) !void {
1414
15pub fn deinit_thread() void {}15pub 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 {
18 log.debug("{s}:{d}:{d} ({s})" ++ ifmt, .{ src.file, src.line, src.column, src.fn_name } ++ iargs);18 log.debug("{s}:{d}:{d} ({s})" ++ ifmt, .{ src.file, src.line, src.column, src.fn_name } ++ iargs);
19}19}
2020
21pub inline fn trace_end(ctx: tracer.Ctx) void {21pub fn trace_end(ctx: tracer.Ctx) void {
22 _ = ctx;22 _ = ctx;
23}23}
2424
src/mod.zig+2-2
...@@ -45,7 +45,7 @@ pub fn deinit_thread() void {...@@ -45,7 +45,7 @@ pub fn deinit_thread() void {
45 started = false;45 started = false;
46}46}
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 {
49 return .{49 return .{
50 .src = src,50 .src = src,
51 .data = if (!started) undefined else impl.trace_begin(src, fmt, args),51 .data = if (!started) undefined else impl.trace_begin(src, fmt, args),
...@@ -56,7 +56,7 @@ pub const Ctx = struct {...@@ -56,7 +56,7 @@ pub const Ctx = struct {
56 src: std.builtin.SourceLocation,56 src: std.builtin.SourceLocation,
57 data: impl.Data,57 data: impl.Data,
5858
59 pub inline fn end(self: Ctx) void {59 pub fn end(self: Ctx) void {
60 if (!started) return;60 if (!started) return;
61 impl.trace_end(self);61 impl.trace_end(self);
62 }62 }
src/none.zig+2-2
...@@ -14,13 +14,13 @@ pub fn init_thread(args: struct {}) !void {...@@ -14,13 +14,13 @@ pub fn init_thread(args: struct {}) !void {
1414
15pub fn deinit_thread() void {}15pub 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 {
18 _ = src;18 _ = src;
19 _ = ifmt;19 _ = ifmt;
20 _ = iargs;20 _ = iargs;
21}21}
2222
23pub inline fn trace_end(ctx: tracer.Ctx) void {23pub fn trace_end(ctx: tracer.Ctx) void {
24 _ = ctx;24 _ = ctx;
25}25}
2626
src/spall.zig+2-2
...@@ -41,7 +41,7 @@ pub fn deinit_thread() void {...@@ -41,7 +41,7 @@ pub fn deinit_thread() void {
41 buffered_writer.flush() catch {};41 buffered_writer.flush() catch {};
42}42}
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 {
45 const fmt = "{s}:{d}:{d} ({s})" ++ ifmt;45 const fmt = "{s}:{d}:{d} ({s})" ++ ifmt;
46 const args = .{ src.file, src.line, src.column, src.fn_name };46 const args = .{ src.file, src.line, src.column, src.fn_name };
47 buffered_writer.writeStruct(BeginEvent{47 buffered_writer.writeStruct(BeginEvent{
...@@ -54,7 +54,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons...@@ -54,7 +54,7 @@ pub inline fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []cons
54 buffered_writer.print(fmt, args ++ iargs) catch return;54 buffered_writer.print(fmt, args ++ iargs) catch return;
55}55}
5656
57pub inline fn trace_end(ctx: tracer.Ctx) void {57pub fn trace_end(ctx: tracer.Ctx) void {
58 _ = ctx;58 _ = ctx;
59 buffered_writer.writeStruct(EndEvent{59 buffered_writer.writeStruct(EndEvent{
60 .pid = @intCast(pid),60 .pid = @intCast(pid),