This page contains code samples for Cloud Profiler. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.
Go quickstart
Sample profiler_quickstart simulates a CPU-intensive workload for Cloud Profiler in Go.
Initializing Cloud Profiler on Google Compute Engine or Kubernetes Engine
Shows how to initialize Cloud Profiler with Python on Google Compute Engine or Google Kubernetes Engine.
View in documentation
View in documentation
Node.js Compute Engine
Shows how to initialize Cloud Profiler with Node.js on Compute Engine.
View in documentation
Python App Engine flexible environment
Shows how to initialize Cloud Profiler with Python on App Engine flexible environment.
View in documentation
Python App Engine standard environment
Shows how to initialize Cloud Profiler with Python on App Engine standard environment.
View in documentation