diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-10 23:08:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-10 23:08:29 +0200 |
| commit | feb34d807e85d626a7ff08a51bba17f93375ddaa (patch) | |
| tree | 94b1de33313f7b3e68e232c70c86d63c2ef15a97 /internal/config | |
| parent | db75c8b17549fdfa23cc8622770d257fa0d7420f (diff) | |
config: centralize default buffer sizes (task 388)
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/buffers.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/config/buffers.go b/internal/config/buffers.go new file mode 100644 index 0000000..61986d8 --- /dev/null +++ b/internal/config/buffers.go @@ -0,0 +1,10 @@ +package config + +const ( + // DefaultChannelBufferSize is the shared default for high-volume trace and + // TUI event channels. + DefaultChannelBufferSize = 4096 + + // DefaultEventMapSize is the default BPF event ring-buffer map size. + DefaultEventMapSize = DefaultChannelBufferSize * 16 +) |
