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

Anurag Goel anurag.dsps at gmail.com
Mon May 26 14:02:01 CDT 2014


On Tue, May 27, 2014 at 12:12 AM, Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:

>
>
> 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?
>
 user-time    sys-time     real-time     Testname

did you tested it? are you sure it works? Did you tested it with -j
>
Yes i tested it  and it seems to work perfectly fine even with -j option.

>
> What would be for example the output of it for test-largefiles.t?
>
.
# Ran 1 tests, 0 skipped, 0 warned, 0 failed.

user    sys     real     Test
0.090   0.030  35.680  test-largefiles.t


>
>
> --
> Pierre-Yves David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140527/ed769b6e/attachment.html>


More information about the Mercurial-devel mailing list