New Function Request: Get_CPU

Apologies if this has been covered before.

Would it be possible to have a new function that returns the CPU percentage at that moment?

I was thinking that I’d like to write CPU stats to the log window, so that I can analyse them later after having played a song.

I appreciate that this might add to the overhead, but I’d still get an idea where my CPU peaks are.

1 Like

You can use Process Monitor: windows - Log %CPU by Process over time - Super User

Thanks, I’ll give that a try, but it wasn’t what I was thinking of, as I thought the windows cpu gave figures across cores and gig performer only ran in one core. Still, hopefully it can give some insight on large cpu fluctuations that would have an impact on audio performance.

In Windows you can change the task manager to display usage per core.

Edit: this: Process Explorer - Sysinternals | Microsoft Learn can give you graphs per process per cpu.

Thank you for these suggestions, I’ll have a play with Process Explorer.

However, this kind of misses the point of what I’m trying to do. I’d like to see the CPU % at certain points in a song, ie. after a certain sequence of midi events. I can get a log of notes played and would like to see alongside that, the CPU %. The information is there, top right of Gig Performer, but how can I get that number into the log window?

Unfortunately, right now that is not something that can be accessed from GPScript

Okay, thanks for letting me know.
Maybe consider adding it in a future release? (if it’s not too painful)