1336817Sdim//===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===//
2336817Sdim//
3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4353358Sdim// See https://llvm.org/LICENSE.txt for license information.
5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6336817Sdim//
7336817Sdim//===----------------------------------------------------------------------===//
8336817Sdim//
9336817Sdim// XRay FDR Mode runtime flags.
10336817Sdim//
11336817Sdim//===----------------------------------------------------------------------===//
12336817Sdim#ifndef XRAY_FLAG
13336817Sdim#error "Define XRAY_FLAG prior to including this file!"
14336817Sdim#endif
15336817Sdim
16336817Sdim// FDR (Flight Data Recorder) Mode logging options.
17336817SdimXRAY_FLAG(int, func_duration_threshold_us, 5,
18336817Sdim          "FDR logging will try to skip functions that execute for fewer "
19336817Sdim          "microseconds than this threshold.")
20336817SdimXRAY_FLAG(int, grace_period_ms, 100,
21336817Sdim          "FDR logging will wait this much time in milliseconds before "
22336817Sdim          "actually flushing the log; this gives a chance for threads to "
23336817Sdim          "notice that the log has been finalized and clean up.")
24336817SdimXRAY_FLAG(int, buffer_size, 16384,
25336817Sdim          "Size of buffers in the circular buffer queue.")
26336817SdimXRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
27336817SdimXRAY_FLAG(bool, no_file_flush, false,
28336817Sdim          "Set to true to not write log files by default.")
29