mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Move spicy/misc
scripts to policy and clarify purpose.
This commit is contained in:
parent
a62e153dd3
commit
ecf00295c2
6 changed files with 12 additions and 4 deletions
|
@ -1,18 +0,0 @@
|
|||
module Spicy;
|
||||
|
||||
event print_usage()
|
||||
{
|
||||
local r = Spicy::resource_usage();
|
||||
|
||||
print fmt("%.6f Spicy user=%f sys=%f heap=%d current_fibers=%d cached_fibers=%d max_fibers=%d max_stack=%d",
|
||||
network_time(), r$user_time, r$system_time, r$memory_heap,
|
||||
r$num_fibers, r$cached_fibers, r$max_fibers,
|
||||
r$max_fiber_stack_size);
|
||||
|
||||
schedule 1 min { print_usage() };
|
||||
}
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
schedule 1 min { print_usage() };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue