- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running my application, and under certain conditions where a quick barrage of TCP packets is received, something starts consuming CPU cycles in a very big way. Because the main() loop slows down, I presume that a higher priority thread(s) is consuming the CPU time.
Other than using a debugger (which I don't have), are there any utilities that I could build in that might help determine where the CPU is spending all its cycles? Thanks!
Solved! Go to Solution.
- Labels:
-
ispn:38946:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ChMa_3922746
I found some literature on the internet talking about CPU utilization and some methods to figure out the CPU consumption.
How to calculate CPU utilization - Embedded.com
https://electronics.stackexchange.com/questions/439982/cpu-utilization-methods
Maybe the techniques mentioned here could be of help to you with the right modifications, might help to figure out what may be consuming the CPU in your use case.
Also, if you could share your code and let me know the steps to reproduce the issue; I could also try to look into it and figure out as to why the main() is slowing down.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ChMa_3922746
I found some literature on the internet talking about CPU utilization and some methods to figure out the CPU consumption.
How to calculate CPU utilization - Embedded.com
https://electronics.stackexchange.com/questions/439982/cpu-utilization-methods
Maybe the techniques mentioned here could be of help to you with the right modifications, might help to figure out what may be consuming the CPU in your use case.
Also, if you could share your code and let me know the steps to reproduce the issue; I could also try to look into it and figure out as to why the main() is slowing down.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for the links and offering to analyze my code. I am digging a bit further on how this is happening in the first place.