[chuck-users] ChucK Guru Question
Dana Batali
dana.batali at gmail.com
Thu Apr 21 10:20:34 EDT 2022
Spencer - thanks for these pearls... I think I'll explore both options. If
the VM-approach works and is sufficiently elegant (and efficient), that
sounds like a preferred outcome due to its generality.
Dana
On Wed, Apr 20, 2022 at 9:13 AM Spencer Salazar <spencer.salazar at gmail.com>
wrote:
> Hey Dana,
>
> Nothing Im aware of. The way I would go about it would be to write a
> chugin that can call getrusage and compare successive calls to that against
> the real-time clock.
>
> Building a clock directly into ChucK's VM is also possible but a bit
> harder to maintain in the long run, unless it was an official feature of
> ChucK.
>
> Spencer
>
>
> On Mon, Apr 18, 2022 at 12:49 PM Dana Batali <dana at cannerycoders.com>
> wrote:
>
>> Any ChucK gurus know if there is a way to ascertain the "load average"
>> of a running session?
>>
>> I'm imagining that a high-res timer might be used to measure the pct of
>> the audio-callback frame that chuck uses during a single tick.
>>
>> Thanks in advance!
>>
>> Dana
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20220421/6244ec05/attachment.html>
More information about the chuck-users
mailing list