This change adds support for writing out profiles at program exit.
Depends on D48653.
Paths
| Differential D48956
[XRay][compiler-rt] Profiling Mode: Flush logs on exit ClosedPublic Authored by dberris on Jul 4 2018, 9:00 PM.
Details
Diff Detail
Event Timelinedberris added inline comments.
dberris added a child revision: D49217: [XRay][compiler-rt] Simplify Allocator Implementation.Jul 12 2018, 12:06 AM This revision is now accepted and ready to land.Jul 12 2018, 8:54 AM Closed by commit rL336969: [XRay][compiler-rt] Profiling Mode: Flush logs on exit (authored by dberris). · Explain WhyJul 12 2018, 9:09 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 154163 compiler-rt/lib/xray/xray_profile_collector.cc
compiler-rt/lib/xray/xray_profiling.cc
compiler-rt/lib/xray/xray_profiling_flags.inc
compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc
compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc
|
Isn't it an error to unconditionally finalize and flush without checking the state first?