Changeset be30e74 in mainline for uspace/app/hbench/hbench.h


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

hbench: comments

File:
1 edited

Legend:

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

    r94d52d5 rbe30e74  
    6666} bench_env_t;
    6767
     68/** Actual benchmark runner.
     69 *
     70 * The first argument describes the environment, second is used to store
     71 * information about the run (performance data or error message) and
     72 * third describes workload size (number of iterations).
     73 */
    6874typedef bool (*benchmark_entry_t)(bench_env_t *, bench_run_t *, uint64_t);
     75
     76/** Setup and teardown callback type.
     77 *
     78 * Unlike in benchmark_entry_t, we do not need to pass in number of
     79 * iterations to execute (note that we use bench_run_t only to simplify
     80 * creation of error messages).
     81 */
    6982typedef bool (*benchmark_helper_t)(bench_env_t *, bench_run_t *);
    7083
     
    90103}
    91104
    92 extern benchmark_t *benchmarks[];
    93 extern size_t benchmark_count;
    94 
    95105extern errno_t csv_report_open(const char *);
    96106extern void csv_report_add_entry(bench_run_t *, int, benchmark_t *, uint64_t);
     
    101111extern const char *bench_env_param_get(bench_env_t *, const char *, const char *);
    102112extern void bench_env_cleanup(bench_env_t *);
     113
     114extern benchmark_t *benchmarks[];
     115extern size_t benchmark_count;
    103116
    104117/* Put your benchmark descriptors here (and also to benchlist.c). */
Note: See TracChangeset for help on using the changeset viewer.