Next: , Previous: , Up: C API Reference   [Contents][Index]


4.5 Data Collection reference

This section details the data collected and reported by MicroBenchmark.

C Data Type: micro_benchmark_stats_sample_type { MICRO_BENCHMARK_SAMPLE_INT64, MICRO_BENCHMARK_SAMPLE_UINT64, MICRO_BENCHMARK_SAMPLE_DOUBLE, MICRO_BENCHMARK_SAMPLE_TIME, MICRO_BENCHMARK_SAMPLE_SMALL_BUFFER, MICRO_BENCHMARK_SAMPLE_USER_PROVIDED }

Type of data collected.


C Data Type: micro_benchmark_stats_meter_sample { int64_t integer, uint64_t modular, double floating_point, micro_benchmark_clock_time time, unsigned char buffer[MICRO_BENCHMARK_SAMPLE_SB_SIZE], void *user_provided }

Union of the data collection types.


C Data Type: micro_benchmark_stats_generic_sample_data { bool discarded, size_t iterations, micro_benchmark_stats_meter_sample value }

Generic data sampled on a test execution.


C Data Type: micro_benchmark_stats_generic_sample

Pointer to a collected sample.


C Data Type: micro_benchmark_stats_generic_samples

Pointer to an array of samples. It is effectively the same type as micro_benchmark_stats_generic_sample and it’s meant for documentation purposes only.