Add flow.lua duration trace

This commit is contained in:
emanuele-f 2019-09-06 11:15:12 +02:00
parent 8d7331e519
commit e9aa6b1703
5 changed files with 14 additions and 10 deletions

View file

@ -207,7 +207,11 @@ end
function ts_dump.run_min_dump(_ifname, ifstats, iface_ts, config, when, verbose)
dumpTopTalkers(_ifname, ifstats, verbose)
scanAlerts("min", ifstats)
interface.checkFlowsScore()
-- Run lua scripts on flows
local tstart = ntop.gettimemsec()
interface.checkFlowsLua()
traceError(TRACE_INFO, TRACE_CONSOLE, string.format("flow.lua took %.2f seconds", (ntop.gettimemsec() - tstart)))
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifstats.id..".interface_rrd_creation") ~= "false")
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")