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}}