mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Added tracing code
This commit is contained in:
parent
2b90d42d0a
commit
bbae6c3782
13 changed files with 76 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
local format_utils = {}
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
function format_utils.round(num, idp)
|
||||
num = tonumber(num)
|
||||
local res
|
||||
|
|
@ -440,4 +442,8 @@ function format_utils.formatHostNameAndAddress(hostname, address)
|
|||
return res
|
||||
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 format_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue