In the Google App Engine, how can I check my processor usage before and after running the task set?

In the Google App Engine, how do you check how much CPU was used before and after collecting events? I understand how to check CPU usage during a single sample of URLs, and I understand how to use statistics to view specific events in aggregate, but how to determine how much CPU was used between 17:00 and 17:15?

Is there a way to request my daily use and then request it again after 10-15 minutes? If necessary, I can clear this from appspot, but it seems very inefficient.

+4
source share
2 answers

Unfortunately, an API for requests of this type does not exist.

Control Panel. It will probably be difficult to obtain accurate measurements using a screen that scrapes the dashboard. The delay between query execution and quota usage is displayed (on the panel or quota page). If you have no other requests for your application, then I think that everything is in order - just read the counters before your work, and then read them again after your work is completed.

Appstats. Alternatively, you can use AppStats . You can download the AppStats main page throughout the event you are interested in, and then summarize usage data for each individual request.

+2
source

You can check the instance processor and memory usage using the runtime API

runtime.cpu_usage (). total () gives you the total number of Mcycles consumed by this instance.

https://developers.google.com/appengine/docs/python/backends/runtimeapi

0
source

All Articles