diff options
Diffstat (limited to 'lib/xray/xray_flags.inc')
-rw-r--r-- | lib/xray/xray_flags.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/xray/xray_flags.inc b/lib/xray/xray_flags.inc index 890f6fda2..470db45d7 100644 --- a/lib/xray/xray_flags.inc +++ b/lib/xray/xray_flags.inc @@ -16,10 +16,22 @@ XRAY_FLAG(bool, patch_premain, false, "Whether to patch instrumentation points before main.") -XRAY_FLAG(bool, xray_naive_log, true, - "Whether to install the naive log implementation.") XRAY_FLAG(const char *, xray_logfile_base, "xray-log.", "Filename base for the xray logfile.") + +// Basic (Naive) Mode logging options. +XRAY_FLAG(bool, xray_naive_log, false, + "Whether to install the naive log implementation.") +XRAY_FLAG(int, xray_naive_log_func_duration_threshold_us, 5, + "Naive logging will try to skip functions that execute for fewer " + "microseconds than this threshold.") +XRAY_FLAG(int, xray_naive_log_max_stack_depth, 64, + "Naive logging will keep track of at most this deep a call stack, " + "any more and the recordings will be droppped.") +XRAY_FLAG(int, xray_naive_log_thread_buffer_size, 1024, + "The number of entries to keep on a per-thread buffer.") + +// FDR (Flight Data Recorder) Mode logging options. XRAY_FLAG(bool, xray_fdr_log, false, "Whether to install the flight data recorder logging implementation.") XRAY_FLAG(int, xray_fdr_log_func_duration_threshold_us, 5, |