mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added script tracings
This commit is contained in:
parent
9ccf4e5acc
commit
74f03c3a38
17 changed files with 91 additions and 4 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
local icmp_utils = {}
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
local icmp_locale_loaded = false
|
||||
local dirs = ntop.getDirs()
|
||||
|
||||
|
|
@ -90,5 +92,8 @@ function icmp_utils.get_icmp_label(ip_version, icmp_type, icmp_code)
|
|||
return(icmp_utils.get_icmp_type(icmp_type))
|
||||
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 icmp_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue