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

Side by Side Diff: src/platform/minijail/getpid_microbenchmark.cc

Issue 492005: Overhaul microbenchmark so that it can be pulled in easily by any package (Closed)
Patch Set: fix cmasone's comments 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/minijail/debian/rules ('k') | src/platform/minijail/readwrite_microbenchmark.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // Some portions Copyright (c) 2009 The Chromium Authors.
5 // 4 //
6 // Microbenchmark of getpid() 5 // Microbenchmark of getpid()
7 #include "microbenchmark/microbenchmark.h" 6 #include "microbenchmark/microbenchmark.h"
8 7
9 #include <syscall.h> 8 #include <syscall.h>
10 namespace chromeos { 9 namespace chromeos {
11 namespace benchmarks { 10 namespace benchmarks {
12 11
13 static void GetPid(bool scaffold_only) { 12 static void GetPid(bool scaffold_only) {
14 if (!scaffold_only) syscall(__NR_getpid); 13 if (!scaffold_only) syscall(__NR_getpid);
15 } 14 }
16 CHROMEOS_MICROBENCHMARK(GetPid, 1000000); 15 CHROMEOS_MICROBENCHMARK(GetPid, 1000000);
17 16
18 } // namespace benchmarks 17 } // namespace benchmarks
19 } // namespace chromeos 18 } // namespace chromeos
OLDNEW
« no previous file with comments | « src/platform/minijail/debian/rules ('k') | src/platform/minijail/readwrite_microbenchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698