English ▼
Skip to page content Skip to main navigation
e.g. "templates" or "datastore"

# The runtime package

## Introduction

Package runtime exposes information about the resource usage of the application.

## Types

type Statistics

Statistics represents the system's statistics.

      type Statistics struct {
          // CPU records the CPU consumed by this instance, in megacycles.
          CPU struct {
              Total   float64
              Rate1M  float64 // consumption rate over one minute
              Rate10M float64 // consumption rate over ten minutes
          }
          // RAM records the memory used by the instance, in bytes.
          RAM struct {
              Current    float64
              Average1M  float64 // average usage over one minute
              Average10M float64 // average usage over ten minutes
          }
      }

  func Stats

    `func Stats(c appengine.Context) (*Statistics, os.Error)`