setUp() — netty Function Reference
Architecture documentation for the setUp() function in WebSocketFrame08EncoderBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD feb1d1e2_b575_1d38_503c_c37b0af842dd["setUp()"] 56430861_d167_55f5_bf78_bd24e3e0ed9d["WebSocketFrame08EncoderBenchmark"] feb1d1e2_b575_1d38_503c_c37b0af842dd -->|defined in| 56430861_d167_55f5_bf78_bd24e3e0ed9d style feb1d1e2_b575_1d38_503c_c37b0af842dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/websocket/WebSocketFrame08EncoderBenchmark.java lines 72–88
@Setup(Level.Trial)
public void setUp() {
byte[] bytes = new byte[contentLength];
ThreadLocalRandom.current().nextBytes(bytes);
ByteBufAllocator allocator = pooledAllocator? PooledByteBufAllocator.DEFAULT : UnpooledByteBufAllocator.DEFAULT;
content = allocator.buffer(contentLength).writeBytes(bytes);
ByteBuf testContent = Unpooled.unreleasableBuffer(content.asReadOnly());
webSocketFrame = new BinaryWebSocketFrame(testContent);
websocketEncoder = new WebSocket08FrameEncoder(masking);
context = new EmbeddedChannelWriteReleaseHandlerContext(allocator, websocketEncoder) {
@Override
protected void handleException(Throwable t) {
handleUnexpectedException(t);
}
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does setUp() do?
setUp() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/websocket/WebSocketFrame08EncoderBenchmark.java.
Where is setUp() defined?
setUp() is defined in microbench/src/main/java/io/netty/microbench/websocket/WebSocketFrame08EncoderBenchmark.java at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free