Dean Michael Berris | eebc67f | 2018-05-04 06:13:35 +0000 | [diff] [blame] | 1 | //===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 58d4360 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Dean Michael Berris | eebc67f | 2018-05-04 06:13:35 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // XRay FDR Mode runtime flags. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | #ifndef XRAY_FLAG |
| 13 | #error "Define XRAY_FLAG prior to including this file!" |
| 14 | #endif |
| 15 | |
| 16 | // FDR (Flight Data Recorder) Mode logging options. |
| 17 | XRAY_FLAG(int, func_duration_threshold_us, 5, |
| 18 | "FDR logging will try to skip functions that execute for fewer " |
| 19 | "microseconds than this threshold.") |
| 20 | XRAY_FLAG(int, grace_period_ms, 100, |
| 21 | "FDR logging will wait this much time in milliseconds before " |
| 22 | "actually flushing the log; this gives a chance for threads to " |
| 23 | "notice that the log has been finalized and clean up.") |
| 24 | XRAY_FLAG(int, buffer_size, 16384, |
| 25 | "Size of buffers in the circular buffer queue.") |
| 26 | XRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.") |
Dean Michael Berris | 5a9177f | 2018-05-14 03:35:01 +0000 | [diff] [blame] | 27 | XRAY_FLAG(bool, no_file_flush, false, |
| 28 | "Set to true to not write log files by default.") |