---
title: compute
summary: Useful functions for interacting with the compute instance runtime.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/compute/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/compute`

Useful functions for interacting with the compute instance runtime.

Package compute_runtime provides ways to reflect on the operation of the
compute runtime in which your application is operating.

## Functions

| Name | Summary |
| --- | --- |
| [GetHeapMiB](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/compute/fn.GetHeapMiB/) | Get the current dynamic memory usage of this sandbox, rounded up to the nearest mebibyte (2^20 bytes). |
| [GetVCPUTime](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/compute/fn.GetVCPUTime/) | Get the amount of time taken on the vCPU. |
