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 TimelineComment Actions Just one concern about exit handler being too aggressive if normal operation finalized and flushed. 
 dberris 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 155316 compiler-rt/trunk/lib/xray/xray_profile_collector.cc
 compiler-rt/trunk/lib/xray/xray_profiling.cc
 compiler-rt/trunk/lib/xray/xray_profiling_flags.inc
 compiler-rt/trunk/test/xray/TestCases/Posix/profiling-multi-threaded.cc
 compiler-rt/trunk/test/xray/TestCases/Posix/profiling-single-threaded.cc
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||