* Counter(): add 'one thousand' param. Needed for https://github.com/google/benchmark/pull/654 Custom user counters are quite custom. It is not guaranteed that the user *always* expects for these to have 1k == 1000. If the counter represents bytes/memory/etc, 1k should be 1024. Some bikeshedding points: 1. Is this sufficient, or do we really want to go full on into custom types with names? I think just the '1000' is sufficient for now. 2. Should there be a helper benchmark::Counter::Counter{1000,1024}() static 'constructor' functions, since these two, by far, will be the most used? 3. In the future, we should be somehow encoding this info into JSON. * Counter(): use std::pair<> to represent 'one thousand' * Counter(): just use a new enum with two values 1000 vs 1024. Simpler is better. If someone comes up with a real reason to need something more advanced, it can be added later on. * Counter: just store the 1000 or 1024 in the One_K values directly * Counter: s/One_K/OneK/
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| AssemblyTests.cmake | Loading commit data... | |
| BUILD | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| basic_test.cc | Loading commit data... | |
| benchmark_gtest.cc | Loading commit data... | |
| benchmark_test.cc | Loading commit data... | |
| clobber_memory_assembly_test.cc | Loading commit data... | |
| complexity_test.cc | Loading commit data... | |
| cxx03_test.cc | Loading commit data... | |
| diagnostics_test.cc | Loading commit data... | |
| donotoptimize_assembly_test.cc | Loading commit data... | |
| donotoptimize_test.cc | Loading commit data... | |
| filter_test.cc | Loading commit data... | |
| fixture_test.cc | Loading commit data... | |
| link_main_test.cc | Loading commit data... | |
| map_test.cc | Loading commit data... | |
| memory_manager_test.cc | Loading commit data... | |
| multiple_ranges_test.cc | Loading commit data... | |
| options_test.cc | Loading commit data... | |
| output_test.h | Loading commit data... | |
| output_test_helper.cc | Loading commit data... | |
| register_benchmark_test.cc | Loading commit data... | |
| reporter_output_test.cc | Loading commit data... | |
| skip_with_error_test.cc | Loading commit data... | |
| state_assembly_test.cc | Loading commit data... | |
| statistics_gtest.cc | Loading commit data... | |
| string_util_gtest.cc | Loading commit data... | |
| templated_fixture_test.cc | Loading commit data... | |
| user_counters_tabular_test.cc | Loading commit data... | |
| user_counters_test.cc | Loading commit data... | |
| user_counters_thousands_test.cc | Loading commit data... |