mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added tracing code
This commit is contained in:
parent
2b90d42d0a
commit
bbae6c3782
13 changed files with 76 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
-- (C) 2013-22 - ntop.org
|
||||
--
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
require "lua_utils"
|
||||
local format_utils = require "format_utils"
|
||||
|
||||
|
|
@ -56,4 +58,8 @@ function network_utils.network2record(ifId, network)
|
|||
return record
|
||||
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 network_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue