Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- _G profiler
- by BigSHinyToys
- ]]--
- local level = -3
- local sSavePath = "gTab"
- local function save(sSave)
- file = fs.open(sSavePath,"a")
- if file then
- file.write(sSave.."\n")
- file:close()
- return true
- else
- return false
- end
- end
- local function add(tDat)
- level = level + 3
- local tTables = {}
- local tOther = {}
- for k,v in pairs(tDat) do
- if k ~= "_G" then
- if type(v) == "table" then
- save(string.rep(" ",level).."+ "..tostring(k))
- add(v)
- else
- save(string.rep(" ",level).."- "..type(v).." "..tostring(v).." "..tostring(k))
- end
- end
- end
- save("")
- level = level - 3
- end
- fs.delete(sSavePath)
- save("ver : "..os.version().." Computer : "..os.getComputerID().." Label : "..(os.getComputerLabel() or ""))
- save("")
- add(_G)
Add Comment
Please, Sign In to add comment