diff --git a/engine/core/src/MemoryTracker.zig b/engine/core/src/MemoryTracker.zig index 4b00556..62fc5f4 100644 --- a/engine/core/src/MemoryTracker.zig +++ b/engine/core/src/MemoryTracker.zig @@ -169,12 +169,12 @@ pub fn init(backingAllocator: std.mem.Allocator, settings: SetupSettings) @This( core.engine_logs("[dmt] Enabling Detailed Memory Tracking"); } - const stackCompactor = if (EnableMemoryTimeline) core.StackCompactor.create(std.heap.c_allocator) catch null else null; + const stackCompactor = if (EnableMemoryTimeline) core.StackCompactor.create(std.heap.smp_allocator) catch null else null; return .{ .backingAllocator = backingAllocator, .stackCompactor = stackCompactor, - .timeline = if (EnableMemoryTimeline) EventTimeline.init(std.heap.c_allocator) catch null else null, + .timeline = if (EnableMemoryTimeline) EventTimeline.init(std.heap.smp_allocator) catch null else null, }; } diff --git a/engine/core/tests/tests.zig b/engine/core/tests/tests.zig index fa6d71b..01bb619 100644 --- a/engine/core/tests/tests.zig +++ b/engine/core/tests/tests.zig @@ -23,6 +23,9 @@ test "simple systems setup for core" { defer core.shutdown_module(allocator); engine_logs("systems started, shutting down"); + + engine_logs("this is a new print added to the test function"); + engine_logs("this is a new print added to the test function"); memory.MTPrintStatsDelta(); try test_loadingConfigs(); diff --git a/lib/tracy/build.zig b/lib/tracy/build.zig index 48a4734..7e80293 100644 --- a/lib/tracy/build.zig +++ b/lib/tracy/build.zig @@ -21,8 +21,8 @@ pub fn build(b: *std.Build) void { .target = target, .optimize = optimize, .root_source_file = b.path("tracy.zig"), - .link_libc = true, - .link_libcpp = true, + .link_libc = tracy_enabled, + .link_libcpp = tracy_enabled, }); if (tracy_enabled) {