<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<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"><font face="Calibri, sans-serif" style="font-size:11pt" 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)</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Christoph,</div>
<div dir="ltr"><br>
<blockquote type="cite">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">
<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">
<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><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<span></span><br>
</div>
</blockquote>
</div>
</div>
</body>
</html>