diff options
author | Dean Michael Berris <dberris@google.com> | 2018-07-13 04:04:18 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-07-13 04:04:18 +0000 |
commit | e7ab4a270ce5bbeb83b76a08cbb78595dc51ce7d (patch) | |
tree | 75ef7312a40591100c8694ebc0cd886d9a2b2ce4 /test | |
parent | ce37cc940dd3c634978038ae81f748289863dd32 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/xray/TestCases/Posix/profiling-multi-threaded.cc | 2 | ||||
-rw-r--r-- | test/xray/TestCases/Posix/profiling-single-threaded.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/xray/TestCases/Posix/profiling-multi-threaded.cc b/test/xray/TestCases/Posix/profiling-multi-threaded.cc index 7ccad1bac..f4caadb28 100644 --- a/test/xray/TestCases/Posix/profiling-multi-threaded.cc +++ b/test/xray/TestCases/Posix/profiling-multi-threaded.cc @@ -8,7 +8,7 @@ // RUN: XRAY_PROFILING_OPTIONS=no_flush=1 %run %t // RUN: XRAY_OPTIONS=verbosity=1 %run %t // RUN: PROFILES=`ls xray-log.profiling-multi-* | wc -l` -// RUN: [ $PROFILES -eq 1 ] +// RUN: [ $PROFILES -ge 1 ] // RUN: rm -f xray-log.profiling-multi-* // // REQUIRES: x86_64-target-arch diff --git a/test/xray/TestCases/Posix/profiling-single-threaded.cc b/test/xray/TestCases/Posix/profiling-single-threaded.cc index fd508b1ac..32002c699 100644 --- a/test/xray/TestCases/Posix/profiling-single-threaded.cc +++ b/test/xray/TestCases/Posix/profiling-single-threaded.cc @@ -8,7 +8,7 @@ // RUN: XRAY_PROFILING_OPTIONS=no_flush=true %run %t // RUN: XRAY_OPTIONS=verbosity=1 %run %t // RUN: PROFILES=`ls xray-log.profiling-single-* | wc -l` -// RUN: [ $PROFILES -eq 2 ] +// RUN: [ $PROFILES -ge 2 ] // RUN: rm -f xray-log.profiling-single-* // // REQUIRES: x86_64-target-arch |