Fix perftools-enabled build

This commit is contained in:
Christian Kreibich 2021-06-23 16:03:53 -07:00
parent a2e5251796
commit cd066f09bf

View file

@ -26,10 +26,10 @@ int main(int argc, char** argv)
zeek::detail::profiling_logger->Log(); zeek::detail::profiling_logger->Log();
#ifdef USE_PERFTOOLS_DEBUG #ifdef USE_PERFTOOLS_DEBUG
if ( perftools_leaks ) if ( options.perftools_check_leaks )
heap_checker = new HeapLeakChecker("net_run"); heap_checker = new HeapLeakChecker("net_run");
if ( perftools_profile ) if ( options.perftools_profile )
{ {
HeapProfilerStart("heap"); HeapProfilerStart("heap");
HeapProfilerDump("pre net_run"); HeapProfilerDump("pre net_run");