Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Debug Sample

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

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

Was this page helpful?