mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix for ZAM statement-level profiling (broken by GH-3199)
This commit is contained in:
parent
e78570ad89
commit
a36c06e5cd
1 changed files with 5 additions and 0 deletions
|
@ -554,6 +554,9 @@ void clear_script_analysis()
|
||||||
{
|
{
|
||||||
IDOptInfo::ClearGlobalInitExprs();
|
IDOptInfo::ClearGlobalInitExprs();
|
||||||
|
|
||||||
|
// Keep the functions around if we're debugging, so we can
|
||||||
|
// generate profiles.
|
||||||
|
#ifndef DEBUG
|
||||||
// We need to explicitly clear out the optimization information
|
// We need to explicitly clear out the optimization information
|
||||||
// associated with identifiers. They have reference loops with
|
// associated with identifiers. They have reference loops with
|
||||||
// the parent identifier that will prevent reclamation of the
|
// the parent identifier that will prevent reclamation of the
|
||||||
|
@ -564,6 +567,8 @@ void clear_script_analysis()
|
||||||
id->ClearOptInfo();
|
id->ClearOptInfo();
|
||||||
|
|
||||||
funcs.clear();
|
funcs.clear();
|
||||||
|
#endif
|
||||||
|
|
||||||
non_recursive_funcs.clear();
|
non_recursive_funcs.clear();
|
||||||
lambdas.clear();
|
lambdas.clear();
|
||||||
when_lambdas.clear();
|
when_lambdas.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue