Update tracy to 0.9.1 (#1182)
* update tracy to 0.9.1 * set allocation and callstack tracing by default when tracy is enabled
This commit is contained in:
@@ -35,8 +35,8 @@ pub fn build(b: *std.build.Builder) !void {
|
|||||||
exe_options.addOption(shared.ZigVersion, "data_version", b.option(shared.ZigVersion, "data_version", "The Zig version your compiler is.") orelse .master);
|
exe_options.addOption(shared.ZigVersion, "data_version", b.option(shared.ZigVersion, "data_version", "The Zig version your compiler is.") orelse .master);
|
||||||
exe_options.addOption(std.log.Level, "log_level", b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info);
|
exe_options.addOption(std.log.Level, "log_level", b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info);
|
||||||
exe_options.addOption(bool, "enable_tracy", enable_tracy);
|
exe_options.addOption(bool, "enable_tracy", enable_tracy);
|
||||||
exe_options.addOption(bool, "enable_tracy_allocation", b.option(bool, "enable_tracy_allocation", "Enable using TracyAllocator to monitor allocations.") orelse false);
|
exe_options.addOption(bool, "enable_tracy_allocation", b.option(bool, "enable_tracy_allocation", "Enable using TracyAllocator to monitor allocations.") orelse enable_tracy);
|
||||||
exe_options.addOption(bool, "enable_tracy_callstack", b.option(bool, "enable_tracy_callstack", "Enable callstack graphs.") orelse false);
|
exe_options.addOption(bool, "enable_tracy_callstack", b.option(bool, "enable_tracy_callstack", "Enable callstack graphs.") orelse enable_tracy);
|
||||||
exe_options.addOption(bool, "enable_failing_allocator", b.option(bool, "enable_failing_allocator", "Whether to use a randomly failing allocator.") orelse false);
|
exe_options.addOption(bool, "enable_failing_allocator", b.option(bool, "enable_failing_allocator", "Whether to use a randomly failing allocator.") orelse false);
|
||||||
exe_options.addOption(u32, "enable_failing_allocator_likelihood", b.option(u32, "enable_failing_allocator_likelihood", "The chance that an allocation will fail is `1/likelihood`") orelse 256);
|
exe_options.addOption(u32, "enable_failing_allocator_likelihood", b.option(u32, "enable_failing_allocator_likelihood", "The chance that an allocation will fail is `1/likelihood`") orelse 256);
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ pub fn build(b: *std.build.Builder) !void {
|
|||||||
exe.addModule("diffz", diffz_module);
|
exe.addModule("diffz", diffz_module);
|
||||||
|
|
||||||
if (enable_tracy) {
|
if (enable_tracy) {
|
||||||
const client_cpp = "src/tracy/TracyClient.cpp";
|
const client_cpp = "src/tracy/public/TracyClient.cpp";
|
||||||
|
|
||||||
// On mingw, we need to opt into windows 7+ to get some features required by tracy.
|
// On mingw, we need to opt into windows 7+ to get some features required by tracy.
|
||||||
const tracy_c_flags: []const []const u8 = if (target.isWindows() and target.getAbi() == .gnu)
|
const tracy_c_flags: []const []const u8 = if (target.isWindows() and target.getAbi() == .gnu)
|
||||||
|
|||||||
Submodule src/tracy updated: f493d4aa8b...897aec5b06
Reference in New Issue
Block a user