54
54
import java .util .concurrent .TimeUnit ;
55
55
56
56
@ AutoService (AgentListener .class )
57
- public class JfrActivator implements AgentListener {
57
+ public class ProfilerActivator implements AgentListener {
58
58
59
59
private static final java .util .logging .Logger logger =
60
- java .util .logging .Logger .getLogger (JfrActivator .class .getName ());
60
+ java .util .logging .Logger .getLogger (ProfilerActivator .class .getName ());
61
61
private final ConfigurationLogger configurationLogger = new ConfigurationLogger ();
62
62
63
63
@ Override
@@ -92,7 +92,7 @@ private static class JfrProfiler {
92
92
private static final ExecutorService executor =
93
93
HelpfulExecutors .newSingleThreadExecutor ("JFR Profiler" );
94
94
95
- static void run (JfrActivator activator , ConfigProperties config , Resource resource ) {
95
+ static void run (ProfilerActivator activator , ConfigProperties config , Resource resource ) {
96
96
executor .submit (logUncaught (() -> activator .activateJfrAndRunForever (config , resource )));
97
97
}
98
98
}
@@ -101,7 +101,7 @@ private static class JavaProfiler {
101
101
private static final ScheduledExecutorService scheduler =
102
102
HelpfulExecutors .newSingleThreadedScheduledExecutor ("Profiler scheduler" );
103
103
104
- static void run (JfrActivator activator , ConfigProperties config , Resource resource ) {
104
+ static void run (ProfilerActivator activator , ConfigProperties config , Resource resource ) {
105
105
int stackDepth = Configuration .getStackDepth (config );
106
106
LogRecordExporter logsExporter = LogExporterBuilder .fromConfig (config );
107
107
CpuEventExporter cpuEventExporter =
0 commit comments