Go 1.11 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Go 1.11
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Go
1.11 applications will continue to run and receive traffic after their
deprecation date. We
recommend that you migrate to the latest supported version of Go.
Package runtime exposes information about the resource usage of the application.
It also provides a way to run code in a new background context of a module.
This package does not work on App Engine "flexible environment".
RunInBackground runs f in a background goroutine in this process.
f is provided a context that may outlast the context provided to RunInBackground.
This is only valid to invoke from a service set to basic or manual scaling.
Statistics
typeStatisticsstruct{// CPU records the CPU consumed by this instance, in megacycles.CPUstruct{Totalfloat64Rate1Mfloat64// consumption rate over one minuteRate10Mfloat64// consumption rate over ten minutes}// RAM records the memory used by the instance, in megabytes.RAMstruct{Currentfloat64Average1Mfloat64// average usage over one minuteAverage10Mfloat64// average usage over ten minutes}}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[[["The `runtime` package provides details on an application's resource usage and allows running code in a new background context."],["This package is specifically designed for the App Engine standard environment and is not compatible with the flexible environment."],["The `RunInBackground` function enables execution of a function in a background goroutine, with its own context."],["The `Statistics` type offers information on CPU consumption and RAM usage, including rates and averages."],["The `Stats` function provides system statistics in the form of a pointer to the Statistics type and a potential error."]]],[]]