mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
tracking of optimization information associated with statements
This commit is contained in:
parent
ed3c87d253
commit
3ac725f44b
3 changed files with 39 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "zeek/Trigger.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/logging/Manager.h"
|
||||
#include "zeek/script_opt/StmtOptInfo.h"
|
||||
|
||||
#include "zeek/logging/logging.bif.h"
|
||||
|
||||
|
@ -49,11 +50,14 @@ Stmt::Stmt(StmtTag arg_tag)
|
|||
last_access = 0;
|
||||
access_count = 0;
|
||||
|
||||
opt_info = new StmtOptInfo();
|
||||
|
||||
SetLocationInfo(&start_location, &end_location);
|
||||
}
|
||||
|
||||
Stmt::~Stmt()
|
||||
{
|
||||
delete opt_info;
|
||||
}
|
||||
|
||||
StmtList* Stmt::AsStmtList()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue