diff options
author | Dean Michael Berris <dberris@google.com> | 2018-06-12 04:06:25 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-06-12 04:06:25 +0000 |
commit | 31049741a2a2c58ebe04fc2e13b62ae8398945f4 (patch) | |
tree | 3669e45b54390db233f5bef24ef5add39829e92d /lib/xray/xray_profiling_flags.inc | |
parent | da1b8bff539cef08140fb20b8e7ed0ae0c244df5 (diff) |
[XRay][profiler] Part 5: Profiler File Writing
Summary:
This is part of the larger XRay Profiling Mode effort.
This patch implements the profile writing mechanism, to allow profiles
collected through the profiler mode to be persisted to files.
Follow-on patches would allow us to load these profiles and start
converting/analysing them through the `llvm-xray` tool.
Depends on D44620.
Reviewers: echristo, kpw, pelikan
Reviewed By: kpw
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D45998
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_profiling_flags.inc')
-rw-r--r-- | lib/xray/xray_profiling_flags.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xray/xray_profiling_flags.inc b/lib/xray/xray_profiling_flags.inc index 6381a0748..616bc83ad 100644 --- a/lib/xray/xray_profiling_flags.inc +++ b/lib/xray/xray_profiling_flags.inc @@ -24,3 +24,6 @@ XRAY_FLAG(int, grace_period_ms, 100, "Profile collection will wait this much time in milliseconds before " "resetting the global state. This gives a chance to threads to " "notice that the profiler has been finalized and clean up.") +XRAY_FLAG(bool, no_flush, false, + "Set to true if we want the profiling implementation to not write " + "out files.") |