mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
segment_profiling: Remove SegmentProfiler and load_sample event
While it seems interesting functionality, this hasn't been documented, maintained or knowingly leveraged for many years. There are various other approaches today, too: * We track the number of event handler invocations regardless of profiling. It's possible to approximate a load_sample event by comparing the result of two get_event_stats() calls. Or, visualize the corresponding counters in a Prometheus setup to get an idea of event/s broken down by event names. * HookCallFunction() allows to intercept script execution, including measuring the time execution takes. * The global call_stack and g_frame_stack can be used from plugins (and even external processes) to walk the Zeek script stack at certain points to implement a sampling profiler. * USDT probes or more plugin hooks will likely be preferred over Zeek builtin functionality in the future. Relates to #3458
This commit is contained in:
parent
df37cadbe8
commit
3f7881a57b
16 changed files with 16 additions and 279 deletions
|
@ -168,12 +168,9 @@ int other_addr_anonymization;
|
|||
|
||||
double profiling_interval;
|
||||
int expensive_profiling_multiple;
|
||||
int segment_profiling;
|
||||
int pkt_profile_mode;
|
||||
double pkt_profile_freq;
|
||||
|
||||
int load_sample_freq;
|
||||
|
||||
int packet_filter_default;
|
||||
|
||||
int sig_max_group_size;
|
||||
|
@ -317,13 +314,10 @@ void init_net_var() {
|
|||
|
||||
expensive_profiling_multiple = id::find_val("expensive_profiling_multiple")->AsCount();
|
||||
profiling_interval = id::find_val("profiling_interval")->AsInterval();
|
||||
segment_profiling = id::find_val("segment_profiling")->AsBool();
|
||||
|
||||
pkt_profile_mode = id::find_val("pkt_profile_mode")->InternalInt();
|
||||
pkt_profile_freq = id::find_val("pkt_profile_freq")->AsDouble();
|
||||
|
||||
load_sample_freq = id::find_val("load_sample_freq")->AsCount();
|
||||
|
||||
dpd_reassemble_first_packets = id::find_val("dpd_reassemble_first_packets")->AsBool();
|
||||
dpd_buffer_size = id::find_val("dpd_buffer_size")->AsCount();
|
||||
dpd_max_packets = id::find_val("dpd_max_packets")->AsCount();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue