Hello,
I was trying to see how much resources my small project was taking using this sketch:
I found another one here
I haven't tested it yet but it looks pretty similar (except that it does not detect the clock speed).
When I used it as it is (i.e. empty) I got CPU:6% and Free RAM:60531
When I pasted just a part of my project where the commented lines are in the "inline void Ten_MS_Task(void)" I got CPU:17% and Free RAM:60472 and if I paste it in the inline void One_MS_Task(void) I got CPU:24% and Free RAM:60511
Is it possible that I am only using 59 of RAM ? I have an array of float, a 2D array of floats, an array of bytes, lots of long, float, and Uint16_t variables, three functions that do float calculation...
Am I using this correctly?
Why do I get 100% CPU usage if I leave a delay in my loop ?
How do I extrapolate CPU usage for 1 loop from the x10=17% and x100=24% ?
Cheers
I was trying to see how much resources my small project was taking using this sketch:
HTML:
https://forum.pjrc.com/threads/31664-measure-your-teensy-3-x-cpu-and-ram-usage!
HTML:
https://github.com/chrishonson/Arduino_CPU_Usage
When I used it as it is (i.e. empty) I got CPU:6% and Free RAM:60531
When I pasted just a part of my project where the commented lines are in the "inline void Ten_MS_Task(void)" I got CPU:17% and Free RAM:60472 and if I paste it in the inline void One_MS_Task(void) I got CPU:24% and Free RAM:60511
Is it possible that I am only using 59 of RAM ? I have an array of float, a 2D array of floats, an array of bytes, lots of long, float, and Uint16_t variables, three functions that do float calculation...
Am I using this correctly?
Why do I get 100% CPU usage if I leave a delay in my loop ?
How do I extrapolate CPU usage for 1 loop from the x10=17% and x100=24% ?
Cheers