mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
tidy up after generating profile
This commit is contained in:
parent
690a4590b7
commit
113d6cd87a
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ ScriptProfileMgr::~ScriptProfileMgr()
|
||||||
|
|
||||||
fprintf(f, "non-scripts\t<no-location>\tTOTAL\t%d\t%.06f\t%.06f\t%lld\t%lld\n",
|
fprintf(f, "non-scripts\t<no-location>\tTOTAL\t%d\t%.06f\t%.06f\t%lld\t%lld\n",
|
||||||
non_scripts.NumCalls(), non_scripts.CPUTime(), 0.0, non_scripts.Memory(), 0LL);
|
non_scripts.NumCalls(), non_scripts.CPUTime(), 0.0, non_scripts.Memory(), 0LL);
|
||||||
|
|
||||||
|
if ( f != stdout )
|
||||||
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptProfileMgr::StartInvocation(const Func* f, const detail::StmtPtr& body)
|
void ScriptProfileMgr::StartInvocation(const Func* f, const detail::StmtPtr& body)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue