Use InfoLog to report perftest results.
On Android printing to stdout doesn't show in logcat. Use InfoLog instead of fprintf(stdout) so that the message get routed to android_log. BUG=dawn:286 Change-Id: I067a12d8a790e42d75617c760a2693a3d94ebda6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14481 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
parent
ea89189d33
commit
e8e9d5daf5
|
@ -385,10 +385,8 @@ void DawnPerfTestBase::PrintResult(const std::string& trace,
|
|||
|
||||
// The results are printed according to the format specified at
|
||||
// [chromium]//build/scripts/slave/performance_log_processor.py
|
||||
fflush(stdout);
|
||||
printf("%sRESULT %s%s: %s= %s%f%s %s\n", important ? "*" : "", testSuite, testName,
|
||||
trace.c_str(), "", value, "", units.c_str());
|
||||
fflush(stdout);
|
||||
dawn::InfoLog() << (important ? "*" : "") << "RESULT " << testSuite << testName << ": " << trace
|
||||
<< "= " << value << " " << units;
|
||||
}
|
||||
|
||||
void DawnPerfTestBase::PrintResult(const std::string& trace,
|
||||
|
@ -403,8 +401,6 @@ void DawnPerfTestBase::PrintResult(const std::string& trace,
|
|||
|
||||
// The results are printed according to the format specified at
|
||||
// [chromium]//build/scripts/slave/performance_log_processor.py
|
||||
fflush(stdout);
|
||||
printf("%sRESULT %s%s: %s= %s%u%s %s\n", important ? "*" : "", testName, testSuite,
|
||||
trace.c_str(), "", value, "", units.c_str());
|
||||
fflush(stdout);
|
||||
dawn::InfoLog() << (important ? "*" : "") << "RESULT " << testSuite << testName << ": " << trace
|
||||
<< "= " << value << " " << units;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue