| Index: base/test/perf_log.cc
|
| diff --git a/base/test/perftimer.cc b/base/test/perf_log.cc
|
| similarity index 82%
|
| copy from base/test/perftimer.cc
|
| copy to base/test/perf_log.cc
|
| index 6815f0b082acf0917085221cc2f9e8b7d0b7e59d..aaeb26c4cd6446369996c5280e198af7c07bc36a 100644
|
| --- a/base/test/perftimer.cc
|
| +++ b/base/test/perf_log.cc
|
| @@ -2,19 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/test/perftimer.h"
|
| +#include "base/test/perf_log.h"
|
|
|
| -#include <stdio.h>
|
| -#include <string>
|
| -
|
| -#include "base/basictypes.h"
|
| #include "base/file_util.h"
|
| -#include "base/files/file_path.h"
|
| #include "base/logging.h"
|
|
|
| +namespace base {
|
| +
|
| static FILE* perf_log_file = NULL;
|
|
|
| -bool InitPerfLog(const base::FilePath& log_file) {
|
| +bool InitPerfLog(const FilePath& log_file) {
|
| if (perf_log_file) {
|
| // trying to initialize twice
|
| NOTREACHED();
|
| @@ -43,3 +40,5 @@ void LogPerfResult(const char* test_name, double value, const char* units) {
|
| fprintf(perf_log_file, "%s\t%g\t%s\n", test_name, value, units);
|
| printf("%s\t%g\t%s\n", test_name, value, units);
|
| }
|
| +
|
| +} // namespace base
|
|
|