1 //===-- xray_profiling_flags.inc --------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // XRay profiling runtime flags.
12 //===----------------------------------------------------------------------===//
14 #error "Define XRAY_FLAG prior to including this file!"
17 XRAY_FLAG(uptr, per_thread_allocator_max, 2 << 20,
18 "Maximum size of any single per-thread allocator.")
19 XRAY_FLAG(uptr, global_allocator_max, 2 << 24,
20 "Maximum size of the global allocator for profile storage.")
21 XRAY_FLAG(uptr, stack_allocator_max, 2 << 20,
22 "Maximum size of the traversal stack allocator.")
23 XRAY_FLAG(int, grace_period_ms, 1,
24 "Profile collection will wait this much time in milliseconds before "
25 "resetting the global state. This gives a chance to threads to "
26 "notice that the profiler has been finalized and clean up.")
27 XRAY_FLAG(bool, no_flush, false,
28 "Set to true if we want the profiling implementation to not write "