Skip to content
Snippets Groups Projects
Commit 65aac0a4 authored by 最萌小汐's avatar 最萌小汐
Browse files

add tracy

parent c34940df
Branches
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@
"ID",
"DEVELOP",
"DBGPORT",
"DBGWAIT"
"DBGWAIT",
"tracy"
],
"Lua.diagnostics.disable": [
"close-non-object"
......
......@@ -14,6 +14,8 @@ log.init(ROOT, ROOT / 'log' / 'service.log')
log.info('Lua Lsp startup, root: ', ROOT)
log.debug('ROOT:', ROOT:string())
require 'tracy' .disable()
xpcall(dofile, log.debug, rootPath .. '/debugger.lua')
local service = require 'service'
......
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,
}
......@@ -18,6 +18,7 @@ log.debug('测试开始')
ac = {}
--dofile((ROOT / 'build_package.lua'):string())
require 'tracy' .enable()
local function loadAllLibs()
assert(require 'bee.filesystem')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment