diff options
Diffstat (limited to 'base/test/perf_test_suite.cc')
-rw-r--r-- | base/test/perf_test_suite.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/base/test/perf_test_suite.cc b/base/test/perf_test_suite.cc index 86be119..04ebb8b 100644 --- a/base/test/perf_test_suite.cc +++ b/base/test/perf_test_suite.cc @@ -10,13 +10,12 @@ #include "base/path_service.h" #include "base/process/launch.h" #include "base/strings/string_util.h" -#include "base/test/perftimer.h" +#include "base/test/perf_log.h" #include "testing/gtest/include/gtest/gtest.h" namespace base { -PerfTestSuite::PerfTestSuite(int argc, char** argv) : TestSuite(argc, argv) { -} +PerfTestSuite::PerfTestSuite(int argc, char** argv) : TestSuite(argc, argv) {} void PerfTestSuite::Initialize() { TestSuite::Initialize(); @@ -26,7 +25,7 @@ void PerfTestSuite::Initialize() { CommandLine::ForCurrentProcess()->GetSwitchValuePath("log-file"); if (log_path.empty()) { FilePath exe; - PathService::Get(base::FILE_EXE, &exe); + PathService::Get(FILE_EXE, &exe); log_path = exe.ReplaceExtension(FILE_PATH_LITERAL("log")); log_path = log_path.InsertBeforeExtension(FILE_PATH_LITERAL("_perf")); } @@ -34,8 +33,8 @@ void PerfTestSuite::Initialize() { // Raise to high priority to have more precise measurements. Since we don't // aim at 1% precision, it is not necessary to run at realtime level. - if (!base::debug::BeingDebugged()) - base::RaiseProcessToHighPriority(); + if (!debug::BeingDebugged()) + RaiseProcessToHighPriority(); } void PerfTestSuite::Shutdown() { |