summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/tracy.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/script/tracy.lua b/script/tracy.lua
new file mode 100644
index 00000000..a5f6d9b1
--- /dev/null
+++ b/script/tracy.lua
@@ -0,0 +1,18 @@
+local suc = pcall(require, 'luatracy')
+local originTracy = tracy
+
+local function enable()
+ tracy = originTracy
+end
+
+local function disable()
+ tracy = {
+ ZoneBeginN = function () end,
+ ZoneEnd = function () end,
+ }
+end
+
+return {
+ enable = enable,
+ disable = disable,
+}