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

Side by Side Diff: src/platform/microbenchmark/main.cc

Issue 481009: Add a simple microbenchmark framework, packaging, and sample tests. (Closed)
Patch Set: fix the bad comment Created 11 years 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 unified diff | Download patch
« no previous file with comments | « src/platform/microbenchmark/debian/rules ('k') | src/platform/microbenchmark/make_pkg.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 // Some portions Copyright (c) 2009 The Chromium Authors.
5
6 #include "microbenchmark/microbenchmark.h"
7
8 #include <stdlib.h>
9
10 int main(int argc, char **argv) {
11 CommandLine::Init(argc, argv);
12 logging::InitLogging(NULL,
13 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
14 logging::DONT_LOCK_LOG_FILE,
15 logging::APPEND_TO_OLD_LOG_FILE);
16 ::testing::InitGoogleTest(&argc, argv);
17 CommandLine *cl = CommandLine::ForCurrentProcess();
18 if (cl->GetSwitchValueASCII(chromeos::Microbenchmark::kRunsSwitch).empty()) {
19 LOG(INFO) << "Defaulting to the number of runs specified per test";
20 LOG(INFO) << "To override, use --"
21 << chromeos::Microbenchmark::kRunsSwitch
22 << "=NUM";
23 }
24 return RUN_ALL_TESTS();
25 }
OLDNEW
« no previous file with comments | « src/platform/microbenchmark/debian/rules ('k') | src/platform/microbenchmark/make_pkg.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698