Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: processor usage

  1. #1
    Junior Member
    Join Date
    Jun 2018
    Posts
    11

    processor usage

    Hi Forum,

    I have a question regarding the AudioProcessorUsage() function. Is this measuring the cpu usage of the Teensy or the cpu usage (if applicable) of the audioshield?

    Greetz, Koen

  2. #2
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    985
    Teensy... the audio shield is just doing the conversion and analog duties.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    It's the CPU usage on Teensy.

    Graphically speaking, AudioProcessorUsage() measures this:

    Click image for larger version. 

Name:	cpu.png 
Views:	13 
Size:	24.0 KB 
ID:	14126

    It captures all the CPU time spend doing non-I/O work like reverb, waveform synth, and effects processing. It also captures part of the work involved for receiving and sending digital audio data to/from the audio shield, but measuring the portion done in the higher priority interrupts is imperfect.

  4. #4
    Junior Member
    Join Date
    Jun 2018
    Posts
    11
    Thanks, that is clear. Anything on the Teensy between input and output in the audio library objects.

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •