This commit is contained in:
Andrew Haynes
2026-03-30 00:25:15 -04:00
parent 8653df28bc
commit a31c0de871
1727 changed files with 1174181 additions and 94 deletions
@@ -0,0 +1,32 @@
local originTracy
local function enable()
if not originTracy then
local suc = pcall(require, 'luatracy')
if suc then
originTracy = tracy
else
originTracy = {
ZoneBeginN = function (_info) end,
ZoneEnd = function () end,
}
end
end
---@diagnostic disable-next-line: lowercase-global
tracy = originTracy
end
local function disable()
---@diagnostic disable-next-line: lowercase-global
tracy = {
ZoneBeginN = function (_info) end,
ZoneEnd = function () end,
}
end
disable()
return {
enable = enable,
disable = disable,
}