1 //===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // XRay FDR Mode runtime flags.
12 //===----------------------------------------------------------------------===//
14 #error "Define XRAY_FLAG prior to including this file!"
17 // FDR (Flight Data Recorder) Mode logging options.
18 XRAY_FLAG(int, func_duration_threshold_us, 5,
19 "FDR logging will try to skip functions that execute for fewer "
20 "microseconds than this threshold.")
21 XRAY_FLAG(int, grace_period_ms, 100,
22 "FDR logging will wait this much time in milliseconds before "
23 "actually flushing the log; this gives a chance for threads to "
24 "notice that the log has been finalized and clean up.")
25 XRAY_FLAG(int, buffer_size, 16384,
26 "Size of buffers in the circular buffer queue.")
27 XRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
28 XRAY_FLAG(bool, no_file_flush, false,
29 "Set to true to not write log files by default.")