---
title: Debug Sample
description: "Play 0x1E, server → client."
---

`play` · `0x1E` · **clientbound** (server → client)

Sends tick timing samples (full tick, server tick, tasks, idle) as an array of nanosecond values. The server sends it while the client has subscribed with a serverbound DebugSampleSubscription. The client uses the samples to draw the server tick time graph in the F3 debug pie chart.

Sent by the server, read by the client. Listen for it with `client.on("DebugSample", (data) => …)` on the receiving side.

## Fields

| Field | Type | Notes |
|---|---|---|
| `sample` | Array |  |
| `type` | VarInt | also `subscriptionType` |

## Send it

```ts
await client.sendPacket("DebugSample", {
  sample: /* Array */,
  type: /* VarInt */,
});
```

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: [`src/Core/Versions/776/Packets/play/clientbound/DebugSample.ts`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/DebugSample.ts)
