// 
// Decompiled by Procyon v0.6.0
// 

package io.netty.buffer;

import jdk.jfr.Description;
import jdk.jfr.Name;
import jdk.jfr.Label;

@Label("Buffer Allocation")
@Name("io.netty.AllocateBuffer")
@Description("Triggered when a buffer is allocated (or reallocated) from an allocator")
final class AllocateBufferEvent extends AbstractBufferEvent
{
    static final String NAME = "io.netty.AllocateBuffer";
    private static final AllocateBufferEvent INSTANCE;
    @Description("Is this chunk pooled, or is it a one-off allocation for this buffer?")
    public boolean chunkPooled;
    @Description("Is this buffer's chunk part of a thread-local magazine or arena?")
    public boolean chunkThreadLocal;
    
    public static boolean isEventEnabled() {
        return AllocateBufferEvent.INSTANCE.isEnabled();
    }
    
    static {
        INSTANCE = new AllocateBufferEvent();
    }
}
