Commit Graph
46 Commits
Author SHA1 Message Date
David Peter 4f893b505e Simplifications 2026-10-06 13:34:03 +02:00
David Peter bc3a3f0524 Support hardware counters (instructions, cache misses, ...) (#983)
* Add hardware counters to JSON exports

* Clarify Linux hardware counter setup
2026-10-06 08:59:40 +02:00
David Peter 95118147af Rename peak memory metric to memory_peak_resident 2026-10-05 20:23:55 +02:00
David Peter 4cd0e24586 Document JSON measurements and omit unavailable memory metrics 2026-10-05 16:01:30 +02:00
David Peter cf381994d1 Resolve overlap with merged measurement refactors and current master 2026-10-05 16:01:30 +02:00
David Peter 7a80feb4b0 Fix Windows build error? 2026-10-05 16:01:13 +02:00
David Peter 6b4e9eb5c2 Represent memory usage as f64 as well 2026-10-05 16:00:08 +02:00
David Peter 0257df96bd Fix Windows includes 2026-10-05 15:59:43 +02:00
David Peter 3494c8abe6 Remove alternative constructors 2026-10-05 15:59:43 +02:00
David Peter 71365c227e Refactoring 2026-10-05 15:59:11 +02:00
David Peter be66a6668f Move quantity module 2026-10-05 15:59:11 +02:00
David Peter e006105e2f Fix Windows timer 2026-10-05 15:59:11 +02:00
David Peter e2fc547dad Use unit system in unix_timer 2026-10-05 15:59:10 +02:00
David Peter 641451aea6 Use uom 2026-10-05 15:59:10 +02:00
David Peter 42e75c1737 Unify TimingResult/TimerResult/Measurement 2026-10-05 15:58:56 +02:00
David Peter f9aa299c0f Switch to unit-safe quantities 2026-10-05 15:58:56 +02:00
David Peter c20fcc0bda Real => wall clock 2026-10-05 15:56:53 +02:00
David Peter ae0035ad56 Use wait4 instead of getrusage 2026-10-05 15:56:37 +02:00
David Peter ebb3182a6e Fix Windows Clippy warnings 2026-10-05 14:07:39 +02:00
David Peter 6af23bb885 Unify the Windows CPU timer stop interface 2026-10-05 13:51:06 +02:00
David Peter e43bf855c0 Merge pull request #965 from sharkdp/codex/wait4-resource-usage
Use `wait4` for per-command resource usage on Unix
2026-10-05 11:25:55 +02:00
David Peter c72a4c764a Use wait4 for per-command resource usage on Unix 2026-10-05 11:15:39 +02:00
David Peter 85293b50fd Preserve 100-nanosecond precision in Windows CPU times 2026-10-05 11:15:01 +02:00
David Peter a8e56efecc Use uom quantities for benchmark measurements 2026-10-05 10:32:32 +02:00
David Peter 35c94a0e36 Clarify internal measurement field names 2026-10-05 10:09:41 +02:00
David Peter 6cb9566118 Unify timer and executor measurement results 2026-10-05 09:47:09 +02:00
David Peter 6556b2bd46 Initial work on tracking memory usage 2024-12-29 12:18:55 +01:00
David Peter 2efc633486 Update dependencies 2024-11-10 22:57:23 +01:00
Clemens Wasser d2fb7d4c4c Use windows-sys and fix feature flag 2023-04-20 12:51:59 +02:00
Clemens Wasser ccda6c4712 Fix winapi type definition change 2023-04-17 21:10:59 +02:00
Clemens Wasser 7db6178dfa Cleanup Windows CPUTimer 2022-09-07 08:32:30 +02:00
Clemens Wasser ac8c114c80 Fix user and kernel times on Windows 2022-09-02 08:48:50 +02:00
cactter 2e8ce30235 Shrink unsafe block 2022-08-02 09:28:08 +02:00
Tavian Barnes 3df63ba2bb Address review comments 2022-05-17 22:30:45 +02:00
Tavian Barnes 277807cb5a Implement --output={null,pipe,<FILE>}
Fixes #377.
2022-05-17 22:30:45 +02:00
David Peter 7fd4aea495 Rename to TimerResult 2022-02-22 13:24:05 +01:00
David Peter 55f0ef6637 Move wall clock timer into execute_and_measure 2022-02-22 13:24:05 +01:00
David Peter e1da8ba00f Further simplify execute_and_measure 2022-02-22 13:24:05 +01:00
David Peter 0ffc6d7cc0 Move to timer module 2022-02-22 13:24:05 +01:00
David Peter defafdf707 Refactor timer module 2022-02-22 10:51:06 +01:00
David Peter b6ff23a77f Update outdated comment 2022-02-22 10:08:15 +01:00
David Peter 5c634c9f2f Move a few modules to util 2022-02-06 20:19:50 +01:00
David Peter 9d61130b44 Remove timer/internal.rs 2021-08-24 22:44:08 +02:00
David Peter 60e9771ad5 Remove cfg-if dependency 2021-08-24 22:44:08 +02:00
David Peter 9df6174bc2 Re-order imports 2021-08-24 22:44:08 +02:00
David Peter 30c381fe2a Flat directory/module structure 2021-08-24 22:44:08 +02:00