Bruno Haible <[email protected]> writes: > Collin Funk wrote: >> > https://gitlab.com/ghwiki/gnow-how/-/wikis/Profiling/with_sampling >> >> Not really related to the current discussion, but you may want to add an >> example of 'perf stat' to that page. I have used it many times when >> testing changes in Coreutils, the posix_spawn changes are an example [1]. > > Well, measuring the execution time of a command is not profiling. That > wiki page about profiling is about measuring which parts of a program are > slow.
True. >> I especially like the '--repeat <COUNT>' option, to compare the average >> of multiple invocations of the command, instead of assuming a single run >> is representitive of the norm. > > That's a good point. I use 'time' for measuring the execution time of a > command. > I agree that a '--repeat <COUNT>' option would make sense. Registered > <https://savannah.gnu.org/bugs/index.php?67800> for this purpose. Is GNU time still maintained? I see it hasn't had a commit in 4 years and still uses K&R declarations. Collin
