quill
FrontendOptions.h
1 
7 #pragma once
8 
9 #include "quill/core/Attributes.h"
10 #include "quill/core/Common.h"
11 
12 #include <cstdint>
13 
14 QUILL_BEGIN_NAMESPACE
15 
16 struct FrontendOptions
17 {
27  static constexpr QueueType queue_type = QueueType::UnboundedBlocking;
28 
32  static constexpr size_t initial_queue_capacity = 128u * 1024u; // 128 KiB
33 
38  static constexpr uint32_t blocking_queue_retry_interval_ns = 800;
39 
44  static constexpr size_t unbounded_queue_max_capacity = 2ull * 1024u * 1024u * 1024u; // 2 GiB
45 
49  static constexpr HugePagesPolicy huge_pages_policy = HugePagesPolicy::Never;
50 };
51 
52 QUILL_END_NAMESPACE
static constexpr size_t unbounded_queue_max_capacity
Maximum capacity for unbounded queues (UnboundedBlocking, UnboundedDropping).
Definition: quill_hot_path_rdtsc_clock.cpp:18
Adding a benchmark for a another logger should be straight forward by duplicating and modifying this ...
Definition: quill_hot_path_rdtsc_clock.cpp:13
static constexpr size_t initial_queue_capacity
Initial capacity of the queue.
Definition: quill_hot_path_rdtsc_clock.cpp:16
static constexpr uint32_t blocking_queue_retry_interval_ns
Interval for retrying when using BoundedBlocking or UnboundedBlocking.
Definition: quill_hot_path_rdtsc_clock.cpp:17