Forums

Is there a good way to query my CPU usage?

I'd like to keep better track of my daily usage, and I was wondering if there's a good way to scrape or query that number from my code?

I want to be able to graph my usage over time so I can easily visualize the effects of changes I make for optimization

You can use the API to get your CPU use: https://help.pythonanywhere.com/pages/API/