Changeset ebb0835 in mainline for uspace/app/hbench/csv.c


Ignore:
Timestamp:
2019-01-07T12:56:22Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c2db02a
Parents:
a787081
Message:

hbench: add tiny wrapper around stopwatch_t

This prepares the harness for future extensions when more than wallclock
time would be prepared. The data would be stored inside the new
structure and the actual benchmarks would not need to be modified at all
(they really should not care which metrics are collected).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/csv.c

    ra787081 rebb0835  
    6767 * @param workload_size Workload size.
    6868 */
    69 void csv_report_add_entry(stopwatch_t *stopwatch, int run_index,
     69void csv_report_add_entry(benchmeter_t *meter, int run_index,
    7070    benchmark_t *bench, uint64_t workload_size)
    7171{
     
    7676        fprintf(csv_output, "%s,%d,%" PRIu64 ",%lld\n",
    7777            bench->name, run_index, workload_size,
    78             (long long) stopwatch_get_nanos(stopwatch));
     78            (long long) stopwatch_get_nanos(&meter->stopwatch));
    7979}
    8080
Note: See TracChangeset for help on using the changeset viewer.