aboutsummaryrefslogtreecommitdiff
path: root/src/string_util.h
AgeCommit message (Collapse)Author
2022-02-14annotate and export public symbols (#1321)Sergiu Deitsch
2021-11-19Disable clang-tidy (unused-using-decls) (#1287)Vy Nguyen
The NOLINTBEGIN block only covers warnings on `long` types and other styling issues but not clang-tidies.
2021-11-17disable lint check where we know it'd fail (#1286)Vy Nguyen
* disable lint check where we know it'd fail one less noisy presubmit * clang format * remove ws
2021-11-10clang-format Google on {src/,include/} (#1280)Dominic Hamon
2021-04-28Support optional, user-directed collection of performance counters (#1114)Mircea Trofin
* Support optional, user-directed collection of performance counters The patch allows an engineer wishing to drill into the root causes of a regression, for example. Currently, only single threaded runs are supported. The feature is a build-time opt in, and then a runtime opt in. The engineer may run the benchmark executable, passing a list of performance counter names (using libpfm's naming scheme) at the command line. The counter values will then be collected and reported back as UserCounters. This is different from #240 in that it is a benchmark user opt-in, and the counter collection is transparent to the benchmark. Currently, this is only supported on platforms where libpfm is supported. libpfm: http://perfmon2.sourceforge.net/ * 'Use' values param in Snapshot when BENCHMARK_OS_WINDOWS This is to avoid unused parameter warning-as-error * Added missing include for <vector> in perf_counters.cc * Moved doc to docs * Added license blurbs
2019-04-19escape special chars in csv and json output. (#802)Michael Tesch
* escape special chars in csv and json output. - escape \b,\f,\n,\r,\t,\," from strings before dumping them to json or csv. - also faithfully reproduce the sign of nan in json. this fixes github issue #745. * functionalize. * split string escape functions between csv and json * Update src/csv_reporter.cc Co-Authored-By: tesch1 <tesch1@gmail.com> * Update src/json_reporter.cc Co-Authored-By: tesch1 <tesch1@gmail.com>
2019-03-26Negative ranges #762 (#787)Daniel Harvey
* Add FIXME in multiple_ranges_test.cc * Improve handling of large bounds in AddRange. Due to breaking the loop too early, AddRange would miss a final multplier of 'mult' that was within the numeric range of T. * Enable negative values for Range argument Fixes #762. * Try to fix build of benchmark_gtest * Try some more to fix build * Attempt to fix format macros * Attempt to resolve format errors for mingw32 * Review feedback Put unit tests in benchmark::internal namespace Fix error reporting in multiple_ranges_test.cc
2018-11-26StrFormat() is a printf-like function, mark it as such, fix fallout. (#727)Roman Lebedev
Fixes #714.
2018-06-05Fix compilation on Android with GNU STL (#596)Marat Dukhan
* Fix compilation on Android with GNU STL GNU STL in Android NDK lacks string conversion functions from C++11, including std::stoul, std::stoi, and std::stod. This patch reimplements these functions in benchmark:: namespace using C-style equivalents from C++03. * Avoid use of log2 which doesn't exist in Android GNU STL GNU STL in Android NDK lacks log2 function from C99/C++11. This patch replaces their use in the code with double log(double) function.
2018-06-01(clang-)format all the things (#610)BaaMeow
* format all documents according to contributor guidelines and specifications use clang-format on/off to stop formatting when it makes excessively poor decisions * format all tests as well, and mark blocks which change too much
2018-03-07Make string_util naming more consistent (#547)Wink Saville
* Rename StringXxx to StrXxx in string_util.h and its users This makes the naming consistent within string_util and moves is the Abseil convention. * Style guide is 2 spaces before end of line "//" comments * Rename StrPrintF/StringPrintF to StrFormat for absl compatibility.
2017-08-21Allow the definition of 1k to be flexible. (#438)Dominic Hamon
When generating a human-readable number for user counters, we don't generally expect 1k to be 1024. This is the default due to the more general purpose string utility. Fixes #437
2016-10-07Apply clang-format to all headers and source (#303)Dominic Hamon
2015-09-03Make it compile with Visual Studio 2013.Jean-Louis Leroy
2015-03-27Add double-quotes where necessaryDominic Hamon
2015-03-09remove forward declarationsEric Fiselier
2015-03-09fix missing newline and header guard nameEric Fiselier
2015-03-06Third step in moving towards adopting new timer semanticsEric Fiselier