Changeset 871cff9a in mainline for uspace/app/hbench/hbench.h


Ignore:
Timestamp:
2019-01-21T18:01:59Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3fea752
Parents:
2d81880
Message:

hbench: add options to set duration and run count

File:
1 edited

Legend:

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

    r2d81880 r871cff9a  
    4242#include <perf.h>
    4343
     44#define DEFAULT_RUN_COUNT 10
     45#define DEFAULT_MIN_RUN_DURATION_SEC 10
     46
    4447/** Single run information.
    4548 *
     
    6063/** Benchmark environment configuration.
    6164 *
    62  * Use proper access functions when modifying data inside this structure.
     65 * Benchmarking code (runners) should use access functions to read
     66 * data from this structure (now only bench_env_param_get).
     67 *
     68 * Harness can access it directly.
    6369 */
    6470typedef struct {
    6571        hash_table_t parameters;
     72        size_t run_count;
     73        nsec_t minimal_run_duration_nanos;
    6674} bench_env_t;
    6775
Note: See TracChangeset for help on using the changeset viewer.