• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//===-- xray_basic_flags.inc ------------------------------------*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8//
9// XRay runtime flags.
10//
11//===----------------------------------------------------------------------===//
12#ifndef XRAY_FLAG
13#error "Define XRAY_FLAG prior to including this file!"
14#endif
15
16XRAY_FLAG(int, func_duration_threshold_us, 5,
17          "Basic logging will try to skip functions that execute for fewer "
18          "microseconds than this threshold.")
19XRAY_FLAG(int, max_stack_depth, 64,
20          "Basic logging will keep track of at most this deep a call stack, "
21          "any more and the recordings will be dropped.")
22XRAY_FLAG(int, thread_buffer_size, 1024,
23          "The number of entries to keep on a per-thread buffer.")
24