diff options
author | Dean Michael Berris <dberris@google.com> | 2018-07-19 09:20:19 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-07-19 09:20:19 +0000 |
commit | 41cea19b4f835ff91c83b1e6a677319157639ff4 (patch) | |
tree | ed0a8ccf79f933b5188292ccbe35017076706fc1 /compiler-rt/test/xray/TestCases/Posix | |
parent | dd7bf598cc050c3c01c817194c508490f36d8bbe (diff) | |
download | bcm5719-llvm-41cea19b4f835ff91c83b1e6a677319157639ff4.tar.gz bcm5719-llvm-41cea19b4f835ff91c83b1e6a677319157639ff4.zip |
[XRay][compiler-rt] Profiling: No files when empty
This change makes it so that the profiling mode implementation will only
write files when there are buffers to write. Before this change, we'd
always open a file even if there were no profiles collected when
flushing.
llvm-svn: 337443
Diffstat (limited to 'compiler-rt/test/xray/TestCases/Posix')
-rw-r--r-- | compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc | 2 | ||||
-rw-r--r-- | compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc b/compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc index f4caadb2808..7ccad1bac1f 100644 --- a/compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc +++ b/compiler-rt/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 -ge 1 ] +// RUN: [ $PROFILES -eq 1 ] // RUN: rm -f xray-log.profiling-multi-* // // REQUIRES: x86_64-target-arch diff --git a/compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc b/compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc index 32002c69921..fd508b1acd1 100644 --- a/compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc +++ b/compiler-rt/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 -ge 2 ] +// RUN: [ $PROFILES -eq 2 ] // RUN: rm -f xray-log.profiling-single-* // // REQUIRES: x86_64-target-arch |