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

Unified Diff: client/deps/glbench/src/main.h

Issue 2123013: Split tests into individual files. Got rid of globals by converting them to classes. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: addressed comments Created 10 years, 7 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 | « client/deps/glbench/src/fillratetest.cc ('k') | client/deps/glbench/src/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/main.h
diff --git a/client/deps/glbench/src/main.h b/client/deps/glbench/src/main.h
index f9aa791e3622eb71b40599b8bebc86f84d7c2a18..eb8e1508d5ec38ba9f4885a660c148ef3289105b 100644
--- a/client/deps/glbench/src/main.h
+++ b/client/deps/glbench/src/main.h
@@ -66,27 +66,9 @@ void DestroyContext();
void SwapBuffers();
bool SwapInterval(int interval);
-// BenchFunc functions are assumed to execute an operation iter times. See
-// Bench for a detailed explanation.
-typedef void (*BenchFunc)(int iter);
-
-uint64_t TimeBench(BenchFunc func, int iter);
-
// This size is for a window that is very large but will fit on all
// the displays we care about.
#define WINDOW_WIDTH 512
#define WINDOW_HEIGHT 512
-#define MAX_ITERATION_DURATION_MS 100000
-// Runs func passing it sequential powers of two (8, 16, 32,...) recording time
-// it took. The data is then fitted linearly, obtaining slope and bias such
-// that:
-// time it took to run x iterations = slope * x + bias
-// Returns false if one iteration of the test takes longer than
-// MAX_ITERATION_LENGTH_MS. The test is then assumed too slow to provide
-// meaningful results.
-bool Bench(BenchFunc func, float *slope, int64_t *bias);
-
-void *MmapFile(const char *name, size_t *length);
-
#endif // BENCH_GL_MAIN_H_
« no previous file with comments | « client/deps/glbench/src/fillratetest.cc ('k') | client/deps/glbench/src/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698