
Summary: This addresses http://llvm.org/PR36790. This change allows the XRay Basic Mode implementation to use the string-based initialization routine provided through `__xray_log_init_mode(...)`. In the process, we've also deprecated some flags defined for the `XRAY_OPTIONS` environment variable. We then introduce another environment variable that can control the XRay Basic Mode implementation through `XRAY_BASIC_OPTIONS`. We also rename files from `xray_inmemory_log` to `xray_basic_logging` to be more in line with the mode implementation. Depends on D46174. Reviewers: echristo, kpw, pelikan, eizan Reviewed By: kpw Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D46246 llvm-svn: 331507
25 lines
983 B
C++
25 lines
983 B
C++
//===-- xray_basic_flags.inc ------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// XRay runtime flags.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef XRAY_FLAG
|
|
#error "Define XRAY_FLAG prior to including this file!"
|
|
#endif
|
|
|
|
XRAY_FLAG(int, func_duration_threshold_us, 5,
|
|
"Basic logging will try to skip functions that execute for fewer "
|
|
"microseconds than this threshold.")
|
|
XRAY_FLAG(int, max_stack_depth, 64,
|
|
"Basic logging will keep track of at most this deep a call stack, "
|
|
"any more and the recordings will be dropped.")
|
|
XRAY_FLAG(int, thread_buffer_size, 1024,
|
|
"The number of entries to keep on a per-thread buffer.")
|