Use string for benchmark names to support computed names
authorYedidya Feldblum <yfeldblum@fb.com>
Sun, 20 Sep 2015 04:51:15 +0000 (21:51 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Sun, 20 Sep 2015 05:20:16 +0000 (22:20 -0700)
commitfacd5a7e615ede30cc3b537c689b9ca195fcc081
treefb7cfe45be7b4e64a7df74fb3cb52bf71493347a
parent9642ca2dee51e2f4d04628a6fde613eb8101ef75
Use string for benchmark names to support computed names

Summary: [Folly] Use string for benchmark names to support computed names.

A benchmark program might call `folly::addBenchmark` with a computed benchmark name without wishing to maintain the lifetime of the string. Support this case.

Reviewed By: @philippv

Differential Revision: D2460621
folly/Benchmark.cpp