This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ DEFAULT_COPTS = select({
4242TEST_COPTS = DEFAULT_COPTS + select ({
4343 "//opencensus:llvm_compiler" : LLVM_TEST_FLAGS ,
4444 # Disable "not all control paths return a value"; functions that return
45- # out of a switch on an enum cause build errors otherwise.
45+ # out of a switch on an enum cause build errors otherwise.
4646 "//opencensus:windows" : MSVC_TEST_FLAGS + ["/wd4715" ],
4747 "//conditions:default" : GCC_TEST_FLAGS ,
4848})
Original file line number Diff line number Diff line change @@ -10,21 +10,21 @@ bazel run -c opt opencensus/stats:stats_manager_benchmark [-- BENCHMARK_FLAGS]
1010Benchmarks use the [ Google benchmark] ( https://github.com/google/benchmark )
1111library. This accepts several helpful flags, including
1212 - --benchmark_filter=REGEX: Run only benchmarks whose names match REGEX.
13- - --benchmark_repetitions=N: Repeat each benchmark and calculate
13+ - --benchmark_repetitions=N: Repeat each benchmark and calculate
1414 mean/median/stddev.
15- - --benchmark_report_aggregates_only={true|false}: In conjunction with
15+ - --benchmark_report_aggregates_only={true|false}: In conjunction with
1616 benchmark_repetitions, report only summary statistics and not single-run
1717 timings.
1818
1919## Profiling
2020
2121Benchmarks can be profiled using the
22- [ gperftools] ( https://github.com/gperftools/gperftools ) library. On
22+ [ gperftools] ( https://github.com/gperftools/gperftools ) library. On
2323Debian/Ubuntu, install the ` google-perftools ` (profile analysis tools) and
24- ` libgoogle-perftools-dev ` (profiling library) packages. When running the
24+ ` libgoogle-perftools-dev ` (profiling library) packages. When running the
2525benchmark, set ` LD_PRELOAD=/usr/lib/libprofiler.so ` to enable the profiler and
2626` CPUPROFILE=PATH ` to save a profile, and analyze the profile with
27- ` google-pprof ` (which needs a path to the binary for symbolization). For
27+ ` google-pprof ` (which needs a path to the binary for symbolization). For
2828example,
2929``` shell
3030bazel build -c opt opencensus/stats:stats_manager_benchmark
Original file line number Diff line number Diff line change 2222# Correct common miscapitalizations.
2323sed -i ' s/Open[c]ensus/OpenCensus/g' $( find * -type f)
2424sed -i ' s/Stack[D]river/Stackdriver/g' $( find * -type f)
25+ # No trailing spaces.
26+ sed -i ' s/ \+$//' $( find * -type f)
2527# For easier debugging: print the version because it affects the formatting.
2628CMD=clang-format
2729$CMD -version
You can’t perform that action at this time.
0 commit comments