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

Unified Diff: base/run_all_perftests.cc

Issue 18003: Call logging::InitLogging. The lack of this was causing some hangs (and poss... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/process_util_unittest.cc ('k') | base/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/run_all_perftests.cc
===================================================================
--- base/run_all_perftests.cc (revision 7931)
+++ base/run_all_perftests.cc (working copy)
@@ -2,41 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/command_line.h"
-#include "base/debug_util.h"
-#include "base/perftimer.h"
-#include "base/process_util.h"
-#include "base/string_util.h"
-#include "base/test_suite.h"
+#include "base/perf_test_suite.h"
-class PerfTestSuite : public TestSuite {
- public:
- PerfTestSuite(int argc, char** argv) : TestSuite(argc, argv) {
- }
-
- virtual void Initialize() {
- // Initialize the perf timer log
- std::string log_file =
- WideToUTF8(CommandLine().GetSwitchValue(L"log-file"));
- if (log_file.empty())
- log_file = "perf_test.log";
- ASSERT_TRUE(InitPerfLog(log_file.c_str()));
-
- // 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 (!DebugUtil::BeingDebugged())
- base::RaiseProcessToHighPriority();
-
- TestSuite::Initialize();
- }
-
- virtual void Shutdown() {
- TestSuite::Shutdown();
-
- FinalizePerfLog();
- }
-};
-
int main(int argc, char** argv) {
return PerfTestSuite(argc, argv).Run();
}
« no previous file with comments | « base/process_util_unittest.cc ('k') | base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698