| 1 | const std = @import("std"); |
| 2 | const tracer = @import("./mod.zig"); |
| 3 | const log = std.log.scoped(.tracer); |
| 4 | |
| 5 | pub fn init(args: struct {}) !void { |
| 6 | _ = args; |
| 7 | } |
| 8 | |
| 9 | pub fn deinit() void {} |
| 10 | |
| 11 | pub fn init_thread(args: struct {}) !void { |
| 12 | _ = args; |
| 13 | } |
| 14 | |
| 15 | pub fn deinit_thread() void {} |
| 16 | |
| 17 | pub 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); |
| 19 | } |
| 20 | |
| 21 | pub fn trace_end(ctx: tracer.Ctx) void { |
| 22 | _ = ctx; |
| 23 | } |
| 24 | |
| 25 | pub const Data = void; |