Add benchmarks for old LTTng-JUL API vs. new one
[lttng-ust-java-tests.git] / src / org / lttng / ust / agent / jul / benchmarks / handler / lttng / old / OldLttngJulHandlerTracingDisabledBenchmark.java
CommitLineData
86316987
AM
1package org.lttng.ust.agent.jul.benchmarks.handler.lttng.old;
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.LTTngAgent;
10import org.lttng.ust.agent.jul.benchmarks.handler.AbstractJulBenchmark;
11import org.lttng.ust.agent.jul.benchmarks.utils.LttngSessionControl;
12
13@SuppressWarnings("deprecation")
14public class OldLttngJulHandlerTracingDisabledBenchmark extends AbstractJulBenchmark {
15
16 private LTTngAgent agent;
17
18 @Before
19 public void testSetup() throws IOException {
20 agent = LTTngAgent.getLTTngAgent();
21
22 assertTrue(LttngSessionControl.setupJulSessionNoEvents());
23 }
24
25 @After
26 public void testTeardown() {
27 assertTrue(LttngSessionControl.stopSession());
28 assertTrue(LttngSessionControl.destroySession());
29
30 agent.dispose();
31 }
32}
This page took 0.022767 seconds and 4 git commands to generate.