Changeset d17cf8c in mainline for uspace/app/hbench/doc/doxygroups.h


Ignore:
Timestamp:
2019-01-21T13:39:37Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94d52d5
Parents:
e7f9a09
Message:

hbench: remove global state

Move benchmark parameters into a benchmark environment structure that is
passed to each benchmark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/doc/doxygroups.h

    re7f9a09 rd17cf8c  
    1919 * benchmark function to the benchmark_t.
    2020 *
    21  * The benchmarking function has to accept two arguments:
     21 * The benchmarking function has to accept trhee arguments:
     22 *  @li bench_env_t: benchmark environment configuration
    2223 *  @li bench_run_t: call bench_run_start and bench_run_stop around the
    2324 *      actual benchmarking code
     
    2728 * Typically, the structure of the function is following:
    2829 * @code{c}
    29  * static bool runner(bench_run_t *run, uint64_t size)
     30 * static bool runnerconst bench_env_t const *envbench_run_t *run, uint64_t size)
    3031 * {
    3132 *      bench_run_start(run);
Note: See TracChangeset for help on using the changeset viewer.