mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Implements lua interpreters telemetry
This commit is contained in:
parent
51f7a0a03f
commit
cce73c2f44
17 changed files with 161 additions and 24 deletions
|
|
@ -26,10 +26,8 @@ class AlertCheckLuaEngine : public LuaEngine {
|
|||
private:
|
||||
ScriptPeriodicity p;
|
||||
char script_path[MAX_PATH];
|
||||
#ifdef LUA_PROFILING
|
||||
u_int num_calls;
|
||||
struct timeval t_begin, t_end;
|
||||
#endif
|
||||
ticks total_ticks;
|
||||
|
||||
public:
|
||||
AlertCheckLuaEngine(AlertEntity alert_entity, ScriptPeriodicity p, NetworkInterface *iface);
|
||||
|
|
@ -39,6 +37,8 @@ class AlertCheckLuaEngine : public LuaEngine {
|
|||
|
||||
ScriptPeriodicity getPeriodicity() const;
|
||||
const char * getGranularity() const;
|
||||
|
||||
void lua_stats(const char * key, lua_State *vm);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue