mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added tracing code
This commit is contained in:
parent
2b90d42d0a
commit
bbae6c3782
13 changed files with 76 additions and 1 deletions
|
|
@ -11,8 +11,11 @@ end
|
|||
|
||||
pragma_once_lua_utils = true
|
||||
|
||||
|
||||
-- ###############################################
|
||||
|
||||
local clock_start = os.clock()
|
||||
|
||||
dirs = ntop.getDirs()
|
||||
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/i18n/?.lua;" .. package.path
|
||||
|
|
@ -5567,3 +5570,7 @@ end
|
|||
-- defined in this file
|
||||
--
|
||||
http_lint = require "http_lint"
|
||||
|
||||
if(trace_script_duration ~= nil) then
|
||||
io.write(debug.getinfo(1,'S').source .." executed in ".. (os.clock()-clock_start)*1000 .. " ms\n")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue