1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.buffer;
17
18 import jdk.jfr.Description;
19 import jdk.jfr.Label;
20 import jdk.jfr.Name;
21
22 @SuppressWarnings("Since15")
23 @Label("Buffer Allocation")
24 @Name("AllocateBufferEvent")
25 @Description("Triggered when a buffer is allocated (or reallocated) from an allocator")
26 final class AllocateBufferEvent extends AbstractBufferEvent {
27 private static final AllocateBufferEvent INSTANCE = new AllocateBufferEvent();
28
29
30
31
32 public static boolean isEventEnabled() {
33 return INSTANCE.isEnabled();
34 }
35
36 @Description("Is this chunk pooled, or is it a one-off allocation for this buffer?")
37 public boolean chunkPooled;
38 @Description("Is this buffer's chunk part of a thread-local magazine or arena?")
39 public boolean chunkThreadLocal;
40 }