mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added tracing code
This commit is contained in:
parent
2b90d42d0a
commit
bbae6c3782
13 changed files with 76 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ local dirs = ntop.getDirs()
|
|||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
-- This file contains the description of all functions
|
||||
-- used to trigger host alerts
|
||||
local verbose = ntop.getCache("ntopng.prefs.alerts.debug") == "1"
|
||||
|
|
@ -1077,4 +1079,8 @@ 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 alert_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue