Changeset be30e74 in mainline
- Timestamp:
- 2019-01-21T13:49:08Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9736c00
- Parents:
- 94d52d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/hbench.h
r94d52d5 rbe30e74 66 66 } bench_env_t; 67 67 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 */ 68 74 typedef 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 */ 69 82 typedef bool (*benchmark_helper_t)(bench_env_t *, bench_run_t *); 70 83 … … 90 103 } 91 104 92 extern benchmark_t *benchmarks[];93 extern size_t benchmark_count;94 95 105 extern errno_t csv_report_open(const char *); 96 106 extern void csv_report_add_entry(bench_run_t *, int, benchmark_t *, uint64_t); … … 101 111 extern const char *bench_env_param_get(bench_env_t *, const char *, const char *); 102 112 extern void bench_env_cleanup(bench_env_t *); 113 114 extern benchmark_t *benchmarks[]; 115 extern size_t benchmark_count; 103 116 104 117 /* Put your benchmark descriptors here (and also to benchlist.c). */
Note:
See TracChangeset
for help on using the changeset viewer.