Commit 762f180a by Tobin Ehlis Committed by Commit Bot

Print perf results to stdout on Android

Bug: chromium:977330 Change-Id: I25b2ac11b8ee9b5c084bd828a4d0ddf2b8c1b3eb Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1670092 Commit-Queue: Tobin Ehlis <tobine@google.com> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 371d95b8
......@@ -6,7 +6,7 @@
// Performance benchmark for Vulkan Primary/Secondary Command Buffer implementations.
// Can run just these tests by adding "--gtest_filter=VulkanCommandBufferPerfTest*"
// option to angle_white_box_perftests.
// When running on Android, use logcat to view output.
// When running on Android with run_angle_white_box_perftests, use "-v" option.
#include "ANGLEPerfTest.h"
#include "common/platform.h"
......
......@@ -77,15 +77,8 @@ void PrintResultsImpl(const std::string& measurement,
const std::string& units,
bool important) {
fflush(stdout);
#if defined(ANDROID)
__android_log_print(
ANDROID_LOG_INFO, "ANGLE", "%s",
ResultsToString(measurement, modifier, trace, values, prefix, suffix, units, important)
.c_str());
#else
printf("%s", ResultsToString(measurement, modifier, trace, values,
prefix, suffix, units, important).c_str());
#endif // defined(ANDROID)
fflush(stdout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment