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

Unified Diff: third_party/re2/util/benchmark.h

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/re2/util/atomicops.h ('k') | third_party/re2/util/benchmark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/util/benchmark.h
diff --git a/third_party/re2/util/benchmark.h b/third_party/re2/util/benchmark.h
deleted file mode 100644
index 31bbd5348aee9bb86bfa521ca5cb5a5f51b8ba80..0000000000000000000000000000000000000000
--- a/third_party/re2/util/benchmark.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2009 The RE2 Authors. All Rights Reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-#ifndef RE2_UTIL_BENCHMARK_H__
-#define RE2_UTIL_BENCHMARK_H__
-
-namespace testing {
-struct Benchmark {
- const char* name;
- void (*fn)(int);
- void (*fnr)(int, int);
- int lo;
- int hi;
- int threadlo;
- int threadhi;
-
- void Register();
- Benchmark(const char* name, void (*f)(int)) { Clear(name); fn = f; Register(); }
- Benchmark(const char* name, void (*f)(int, int), int l, int h) { Clear(name); fnr = f; lo = l; hi = h; Register(); }
- void Clear(const char* n) { name = n; fn = 0; fnr = 0; lo = 0; hi = 0; threadlo = 0; threadhi = 0; }
- Benchmark* ThreadRange(int lo, int hi) { threadlo = lo; threadhi = hi; return this; }
-};
-} // namespace testing
-
-void SetBenchmarkBytesProcessed(long long);
-void StopBenchmarkTiming();
-void StartBenchmarkTiming();
-void BenchmarkMemoryUsage();
-void SetBenchmarkItemsProcessed(int);
-
-int NumCPUs();
-
-#define BENCHMARK(f) \
- ::testing::Benchmark* _benchmark_##f = (new ::testing::Benchmark(#f, f))
-
-#define BENCHMARK_RANGE(f, lo, hi) \
- ::testing::Benchmark* _benchmark_##f = \
- (new ::testing::Benchmark(#f, f, lo, hi))
-
-#endif // RE2_UTIL_BENCHMARK_H__
« no previous file with comments | « third_party/re2/util/atomicops.h ('k') | third_party/re2/util/benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698