Changeset ebb0835 in mainline for uspace/app/hbench/fs/dirread.c
- Timestamp:
- 2019-01-07T12:56:22Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2db02a
- Parents:
- a787081
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/fs/dirread.c
ra787081 rebb0835 43 43 * that the corresponding blocks would be cached after first run. 44 44 */ 45 static bool runner( stopwatch_t *stopwatch, uint64_t size,45 static bool runner(benchmeter_t *meter, uint64_t size, 46 46 char *error, size_t error_size) 47 47 { 48 48 const char *path = bench_param_get("dirname", "/"); 49 49 50 stopwatch_start(stopwatch);50 benchmeter_start(meter); 51 51 for (uint64_t i = 0; i < size; i++) { 52 52 DIR *dir = opendir(path); … … 64 64 closedir(dir); 65 65 } 66 stopwatch_stop(stopwatch);66 benchmeter_stop(meter); 67 67 68 68 return true;
Note:
See TracChangeset
for help on using the changeset viewer.