---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/interfaces/GpuBufferInstrument.md
description: >-
  A handle returned by [`instrumentGpuBuffers`](https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/functions/instrumentGpuBuffers): read live samples, then
  `uninstall()` to restore.
---

# Interface: GpuBufferInstrument

Defined in: [src/batteries/llm/chat\_common/gpu\_budget.ts:162](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L162)

A handle returned by [instrumentGpuBuffers](../functions/instrumentGpuBuffers.md): read live samples, then `uninstall()` to restore.

## Properties

| Property                                    | Type                                          | Description                                                                           | Defined in                                                                                                                                              |
| ------------------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `sample`       | () => [`GpuBufferSample`](GpuBufferSample.md) | Take a live sample of GPU buffer usage.                                               | [src/batteries/llm/chat\_common/gpu\_budget.ts:164](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L164) |
|  `uninstall` | () => `void`                                  | Restore the original `createBuffer`/`destroy` (idempotent). Call when done measuring. | [src/batteries/llm/chat\_common/gpu\_budget.ts:166](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L166) |
