From 99f7266b08121898736029336c66d0862b206f5e Mon Sep 17 00:00:00 2001 From: Marcelo Juchem Date: Tue, 6 Nov 2012 15:16:05 -0800 Subject: [PATCH] Adding usage example for BENCHMARK_DRAW_LINE() Summary: Yes, I admit, I was dumb enough to try it in a benchmark's body. Test Plan: review Reviewed By: tudorb@fb.com FB internal diff: D622613 --- folly/docs/Benchmark.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/folly/docs/Benchmark.md b/folly/docs/Benchmark.md index 2273a783..c1be39fb 100644 --- a/folly/docs/Benchmark.md +++ b/folly/docs/Benchmark.md @@ -178,6 +178,20 @@ group or for whatever reason), use `BENCHMARK_DRAW_LINE()`. The line fulfills a purely aesthetic role; it doesn't interact with measurements in any way. +``` Cpp + BENCHMARK(foo) { + Foo foo; + foo.doSomething(); + } + + BENCHMARK_DRAW_LINE(); + + BENCHMARK(bar) { + Bar bar; + bar.doSomething(); + } +``` + ### Suspending a benchmark *** -- 2.34.1