Skip to content

Commit

Permalink
Rename JfrActivator to ProfilerActivator
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Jun 8, 2023
1 parent 7f13711 commit 9fdc96b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
import java.util.concurrent.TimeUnit;

@AutoService(AgentListener.class)
public class JfrActivator implements AgentListener {
public class ProfilerActivator implements AgentListener {

private static final java.util.logging.Logger logger =
java.util.logging.Logger.getLogger(JfrActivator.class.getName());
java.util.logging.Logger.getLogger(ProfilerActivator.class.getName());
private final ConfigurationLogger configurationLogger = new ConfigurationLogger();

@Override
Expand Down Expand Up @@ -92,7 +92,7 @@ private static class JfrProfiler {
private static final ExecutorService executor =
HelpfulExecutors.newSingleThreadExecutor("JFR Profiler");

static void run(JfrActivator activator, ConfigProperties config, Resource resource) {
static void run(ProfilerActivator activator, ConfigProperties config, Resource resource) {
executor.submit(logUncaught(() -> activator.activateJfrAndRunForever(config, resource)));
}
}
Expand All @@ -101,7 +101,7 @@ private static class JavaProfiler {
private static final ScheduledExecutorService scheduler =
HelpfulExecutors.newSingleThreadedScheduledExecutor("Profiler scheduler");

static void run(JfrActivator activator, ConfigProperties config, Resource resource) {
static void run(ProfilerActivator activator, ConfigProperties config, Resource resource) {
int stackDepth = Configuration.getStackDepth(config);
LogRecordExporter logsExporter = LogExporterBuilder.fromConfig(config);
CpuEventExporter cpuEventExporter =
Expand Down

0 comments on commit 9fdc96b

Please sign in to comment.