[PATCH] run-test: '--time' option provide more details to user

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon May 26 13:42:12 CDT 2014



On 05/24/2014 12:10 PM, Anurag Goel wrote:
> # HG changeset patch
> # User anuraggoel <anurag.dsps at gmail.com>
> # Date 1400958116 -19800
> #      Sun May 25 00:31:56 2014 +0530
> # Node ID 0c6ee6403d787f8eb08fe01550f2e9e0aa637c26
> # Parent  883e268cb860c0ea2eb0faa94114e11c3a4a3893
> run-test: '--time' option provide more details to user
>
> 'time.time()' module can only be used to calculate 'real' time taken by a
> process. Therefore, I switched it to 'os.times()' module which helps in
> getting additional info like "Total number of CPU-seconds that the process
> spent in kernel mode" and "Total number of CPU-seconds that the process spent
> in user mode".


What does the new output looks like?

did you tested it? are you sure it works? Did you tested it with -j

What would be for example the output of it for test-largefiles.t?


-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list