To display the recent queries that used the most CPU, follow these steps:
-
Go to the Cloud Spanner Instances page.
-
Click the name of the instance that contains your database.
-
In the Overview tab, click the name of your database. The Database details page appears.
-
Click Query stats.
The list shows queries that had the highest total CPU usage for the complete one-minute interval that is the most recent. Below the list, the GCP Console displays the time at which the interval ended.
-
Click 10 min, 1 hour, or 24 hours to change the time period for the query statistics.