Build Cloud Profiler agent configurations with CPU, heap, and contention profiling settings.
Build Cloud Profiler agent configurations with CPU, heap, and contention profiling settings and collection intervals.
Required Fields
projectIdserviceserviceVersionprofilerConfig.profileTypesOutput will appear here...A backend team suspects a slow memory leak in a service that gets restarted nightly anyway, so it's never triggered an OOM alert, but response latency creeps up hour over hour before each restart. Default heap sampling at 512KB intervals shows a vague upward trend but not enough resolution to identify which allocation site is responsible. They use the builder to temporarily lower heapProfiling.samplingRate to 128KB for a focused investigation window, redeploy to a canary instance, and the finer-grained heap profile clearly attributes the growth to an unbounded in-memory cache that was missing an eviction policy.
Build a Cloud Profiler agent configuration covering which profile types to collect (CPU, HEAP, THREADS, CONTENTION, WALL) and their sampling parameters. heapProfiling.samplingRate is the average byte interval between allocation samples (the 524288 default means roughly one sample per 512KB allocated, not a fixed number of samples per second), so lowering it increases both profiling accuracy and overhead, a real memory-bandwidth tradeoff rather than a free knob. The agent wakes on a collection interval (default around 60s) and captures for a bounded duration (default around 10s) rather than continuously profiling, which is why CPU profiler output is naturally sampled and won't catch a spike that happens entirely between collection windows.
The builder requires projectId, service, serviceVersion, and profilerConfig.profileTypes to resolve, the fields the Profiler agent needs to correctly attribute and segment collected profiles; the collection interval, backoff, and per-profile-type sampling parameters are validated as well-formed JSON but their tuning is a real tradeoff between overhead and resolution that's on you to make.
Continuous profiling retention (retentionDays) only controls how long historical profiles are kept for comparison, it doesn't mean the agent profiles continuously, collection is still windowed per collectionInterval regardless of retention settings.
A missing or reused serviceVersion across genuinely different deploys merges their profile data in the UI, making before/after comparisons across a deploy meaningless, always bump the version string on every build that changes code, not just on major releases.
Allocation profiling overhead scales with allocation rate, not request rate — a service doing heavy short-lived object churn per request pays more profiling tax than a request-count-equivalent service with lean allocation patterns, budget for that when deciding whether to enable it in production.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.