QuestionQ102

VerifiedBuilding and testing applications

You recently deployed a Go application to Google Kubernetes Engine (GKE). The operations team has observed that the application's CPU usage remains high even with low production traffic. They have asked you to optimize the application's CPU resource consumption. You want to identify which Go functions use the greatest amount of CPU. What should you do?

Explanation

Cloud Profiler supports CPU-time profiling for Go applications running on GKE. Adding the profiling agent to the application collects function-level CPU data, and Profiler flame graphs show each function’s relative CPU consumption, enabling identification of the CPU-intensive functions to optimize.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!