1//===-- xray_profiling_flags.inc --------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// XRay profiling runtime flags. 11// 12//===----------------------------------------------------------------------===// 13#ifndef XRAY_FLAG 14#error "Define XRAY_FLAG prior to including this file!" 15#endif 16 17XRAY_FLAG(uptr, per_thread_allocator_max, 16384, 18 "Maximum size of any single per-thread allocator.") 19XRAY_FLAG(uptr, global_allocator_max, 2 << 24, 20 "Maximum size of the global allocator for profile storage.") 21XRAY_FLAG(uptr, stack_allocator_max, 2 << 20, 22 "Maximum size of the traversal stack allocator.") 23XRAY_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.") 27XRAY_FLAG(bool, no_flush, false, 28 "Set to true if we want the profiling implementation to not write " 29 "out files.") 30XRAY_FLAG(int, buffers_max, 128, 31 "The number of buffers to pre-allocate used by the profiling " 32 "implementation.") 33