Shows how to initialize Cloud Profiler with Python on Google Compute Engine or Google Kubernetes Engine.
Documentation pages that include this code sample
To view the code sample used in context, see the following documentation:
Code sample
Python
For more information, see the Profiler Python API reference documentation.