Deleted Added
full compact
xray_fdr_flags.inc (341825) xray_fdr_flags.inc (353358)
1//===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===//
2//
1//===-- xray_fdr_flags.inc --------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
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
4//
6//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// XRay FDR Mode runtime flags.
11//
12//===----------------------------------------------------------------------===//
13#ifndef XRAY_FLAG
14#error "Define XRAY_FLAG prior to including this file!"
15#endif
16
17// FDR (Flight Data Recorder) Mode logging options.
18XRAY_FLAG(int, func_duration_threshold_us, 5,
19 "FDR logging will try to skip functions that execute for fewer "
20 "microseconds than this threshold.")
21XRAY_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.")
25XRAY_FLAG(int, buffer_size, 16384,
26 "Size of buffers in the circular buffer queue.")
27XRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
28XRAY_FLAG(bool, no_file_flush, false,
29 "Set to true to not write log files by default.")
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.
17XRAY_FLAG(int, func_duration_threshold_us, 5,
18 "FDR logging will try to skip functions that execute for fewer "
19 "microseconds than this threshold.")
20XRAY_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.")
24XRAY_FLAG(int, buffer_size, 16384,
25 "Size of buffers in the circular buffer queue.")
26XRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
27XRAY_FLAG(bool, no_file_flush, false,
28 "Set to true to not write log files by default.")