folly: allow folly::init to build on systems without the symbolizer (macOS)
[folly.git] / folly / test / HistogramBenchmark.cpp
index 87a77b993022b5e7e58c7345f271f91dea0e56ae..6f74fcf45ed6b47a87c6fabb442f0d156a526e0f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include "folly/stats/Histogram.h"
+#include <folly/stats/Histogram.h>
 
-#include <gflags/gflags.h>
-
-#include "folly/Benchmark.h"
-#include "folly/Foreach.h"
+#include <folly/Benchmark.h>
+#include <folly/Foreach.h>
+#include <folly/portability/GFlags.h>
 
 using folly::Histogram;
 
-void addValue(uint n, int64_t bucketSize, int64_t min, int64_t max) {
+void addValue(unsigned int n, int64_t bucketSize, int64_t min, int64_t max) {
   Histogram<int64_t> hist(bucketSize, min, max);
   int64_t num = min;
   FOR_EACH_RANGE (i, 0, n) {
@@ -37,7 +36,7 @@ BENCHMARK_NAMED_PARAM(addValue, 0_to_1000, 10, 0, 1000);
 BENCHMARK_NAMED_PARAM(addValue, 5k_to_20k, 250, 5000, 20000);
 
 int main(int argc, char *argv[]) {
-  google::ParseCommandLineFlags(&argc, &argv, true);
+  gflags::ParseCommandLineFlags(&argc, &argv, true);
   folly::runBenchmarks();
   return 0;
 }