[XRay][compiler-rt] Profiling Mode: Flush logs on exit
authorDean Michael Berris <dberris@google.com>
Fri, 13 Jul 2018 04:04:18 +0000 (04:04 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 13 Jul 2018 04:04:18 +0000 (04:04 +0000)
commit5d92d3e5be7e4a25e20cc77194723da0a2740eb8
treeb432896ded6bec57c08ef59a1ea60aa5e44a5490
parent00712cb749b47ef1e1c71b06958101743f8f3408
[XRay][compiler-rt] Profiling Mode: Flush logs on exit

Summary:
This change adds support for writing out profiles at program exit.

Depends on D48653.

Reviewers: kpw, eizan

Reviewed By: kpw

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D48956

llvm-svn: 336969
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