Description:
- Continuously analyzes the performance of CPU or memory-intensive functions executed across an application.
- Very cool to use
- This code simply turns Profiler on. Once on, Profiler starts reporting application metrics to Google Cloud.
import googlecloudprofiler
try:
googlecloudprofiler.start(verbose=3)
except (ValueError, NotImplementedError) as exc:
print(exc)