mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added script tracings
This commit is contained in:
parent
9ccf4e5acc
commit
74f03c3a38
17 changed files with 91 additions and 4 deletions
|
|
@ -2,6 +2,8 @@
|
|||
-- (C) 2014-22 - ntop.org
|
||||
--
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
require "lua_utils"
|
||||
local json = require("dkjson")
|
||||
|
|
@ -1170,5 +1172,9 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
if(trace_script_duration ~= nil) then
|
||||
io.write(debug.getinfo(1,'S').source .." executed in ".. (os.clock()-clock_start)*1000 .. " ms\n")
|
||||
end
|
||||
|
||||
return recording_utils
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue