Add benchmarks for old LTTng-JUL API vs. new one
[lttng-ust-java-tests.git] / src / org / lttng / ust / agent / jul / benchmarks / handler / lttng / LttngJulHandlerTracingEnabledBenchmark.java
CommitLineData
86316987
AM
1package org.lttng.ust.agent.jul.benchmarks.handler.lttng;
2
3import static org.junit.Assert.assertTrue;
4
5import java.io.IOException;
6
7import org.junit.After;
8import org.junit.Before;
9import org.lttng.ust.agent.jul.LTTngLogHandler;
10import org.lttng.ust.agent.jul.benchmarks.handler.AbstractJulBenchmark;
11import org.lttng.ust.agent.jul.benchmarks.utils.LttngSessionControl;
12
13public class LttngJulHandlerTracingEnabledBenchmark extends AbstractJulBenchmark {
14
15 @Before
16 public void testSetup() throws IOException {
17 handler = new LTTngLogHandler(true);
18
19 assertTrue(LttngSessionControl.setupJulSessionAllEvents());
20 }
21
22 @After
23 public void testTeardown() {
24 assertTrue(LttngSessionControl.stopSession());
25 assertTrue(LttngSessionControl.destroySession());
26 }
27}
This page took 0.024642 seconds and 4 git commands to generate.