<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi all --<div><br></div><div>> <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">There’s a thread on squeak-dev or vm-dev from perhaps five years ago by Ryan Macnak suggesting that the vm maintain an active time rather than an idle time, and that it be hooked into sleep events.  I think this is a good idea but I don’t have cycles to implement it, so the idle time is what we have at the moment. </span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Here is the thread:</span></div><div><a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2016-February/188129.html"><span style="font-size: 10pt">http://lists.squeakfoundation.org/pipermail/squeak-dev/2016-February/188129.html</span></a><br></div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 11.01.2022 20:53:02 schrieb Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de>:</p><div style="font-family:Arial,Helvetica,sans-serif">

<div id="divtagdefaultwrapper" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif" dir="ltr">
<p>Just a naive follow-up question about the usage of <span>Time class>>#microsecondsToRun: Is it correct that one should not enable <span>useHighResClockForTiming on a modern laptop which might throttle the CPU when the power supply is unplugged? :)</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>Best,</span></span></p>
<p><span><span>Christoph</span></span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Thiede, Christoph<br>
<b>Gesendet:</b> Dienstag, 11. Januar 2022 20:33:56<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> AW: [squeak-dev] Measuring process time of the VM (user+sys)</span>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif" dir="ltr">
<p>Thanks for the fast reply, Eliot! So the idle time tells me the amount of time for which the VM has been non-busy, but without an active clock, subtracting suspension windows by the CI runner is impossible for now. I'll see what I can make of this. :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Eliot Miranda <eliot.miranda@gmail.com><br>
<b>Gesendet:</b> Dienstag, 11. Januar 2022 20:06:16<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Measuring process time of the VM (user+sys)</span>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Christoph,</div>
<div dir="ltr"><br>
<blockquote type="cite" style="min-width: 500px">On Jan 11, 2022, at 5:21 AM, Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite" style="min-width: 500px">
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>I am running some performance benchmarks using #timeToRunWithoutGC via smalltalkCI on GitHub Actions (Ubuntu) and am observing a very high standard deviation of the results. I suppose that GitHub is temporarily suspending my workflow for reasons. Is my assumption
 correct that such suspensions would *not* be transparent to <span>primitiveUTCMicrosecondClock, which acts similar to a wall clock? Does the VM provide any means to measure the time that was actually spent inside the VM process? I believe I am searching for
 an equivalent of the linux time command where I would sum up user + system time (because expensive I/O calls from my benchmarked code are indeed relevant) and then subtract the GC time. Is there already any support for this in the VM, or would this require
 major efforts?</span></p>
</div>
</div>
</blockquote>
<div><br>
</div>
The VM does maintain an idle time, accessible via vmParameterAt: .  Use the About Squeak’s VM parameters tab to find out which it is. The idle time gets incremented in relinquishProcessorForMicroseconds: from the idleProcess.
<div><br>
</div>
<div>There’s a thread on squeak-dev or vm-dev from perhaps five years ago by Ryan Macnak suggesting that the vm maintain an active time rather than an idle time, and that it be hooked into sleep events.  I think this is a good idea but I don’t have cycles to
 implement it, so the idle time is what we have at the moment. <br>
<blockquote type="cite" style="min-width: 500px">
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif" dir="ltr">
<p><span><br>
</span></p>
<p><span>Thanks in advance!</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols">
<div name="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif;font-size: ;margin: 0">
<div><span style="font-size: 10pt;color: #808080"></span></div>
</div>
</div>
</div>
</div>
<span></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</div></blockquote></div>