Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3476)

Unified Diff: base/test/perf_test_suite.cc

Issue 23985006: base: Split logging functions and PerfTimeLogger out of perftimer.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix visitedlink Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/perf_log.cc ('k') | base/test/perf_time_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/perf_test_suite.cc
diff --git a/base/test/perf_test_suite.cc b/base/test/perf_test_suite.cc
index 86be1199619e7772d5350362975442043d8c23eb..04ebb8b5d4eaa1c7889d49d191559b97c767580a 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() {
« no previous file with comments | « base/test/perf_log.cc ('k') | base/test/perf_time_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698