mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
18 lines
363 B
Text
18 lines
363 B
Text
##! Turns on profiling of Bro resource consumption.
|
|
|
|
module Profiling;
|
|
|
|
## Set the profiling output file.
|
|
redef profiling_file = open_log_file("prof");
|
|
|
|
## Set the cheap profiling interval.
|
|
redef profiling_interval = 15 secs;
|
|
|
|
## Set the expensive profiling interval.
|
|
redef expensive_profiling_multiple = 20;
|
|
|
|
event bro_init()
|
|
{
|
|
set_buf(profiling_file, F);
|
|
}
|
|
|