xray_fdr_flags.inc revision 336817
1202375Srdivacky//===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===//
2202375Srdivacky//
3202375Srdivacky//                     The LLVM Compiler Infrastructure
4202375Srdivacky//
5202375Srdivacky// This file is distributed under the University of Illinois Open Source
6202375Srdivacky// License. See LICENSE.TXT for details.
7202375Srdivacky//
8202375Srdivacky//===----------------------------------------------------------------------===//
9202375Srdivacky//
10202375Srdivacky// XRay FDR Mode runtime flags.
11202375Srdivacky//
12202375Srdivacky//===----------------------------------------------------------------------===//
13202375Srdivacky#ifndef XRAY_FLAG
14202375Srdivacky#error "Define XRAY_FLAG prior to including this file!"
15202375Srdivacky#endif
16210299Sed
17202375Srdivacky// FDR (Flight Data Recorder) Mode logging options.
18202375SrdivackyXRAY_FLAG(int, func_duration_threshold_us, 5,
19202375Srdivacky          "FDR logging will try to skip functions that execute for fewer "
20202375Srdivacky          "microseconds than this threshold.")
21202375SrdivackyXRAY_FLAG(int, grace_period_ms, 100,
22202375Srdivacky          "FDR logging will wait this much time in milliseconds before "
23202375Srdivacky          "actually flushing the log; this gives a chance for threads to "
24202375Srdivacky          "notice that the log has been finalized and clean up.")
25202375SrdivackyXRAY_FLAG(int, buffer_size, 16384,
26210299Sed          "Size of buffers in the circular buffer queue.")
27210299SedXRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
28210299SedXRAY_FLAG(bool, no_file_flush, false,
29210299Sed          "Set to true to not write log files by default.")
30210299Sed