diff --git a/dd-java-agent/agent-profiling/profiling-ddprof/src/main/java/com/datadog/profiling/ddprof/DatadogProfilerConfig.java b/dd-java-agent/agent-profiling/profiling-ddprof/src/main/java/com/datadog/profiling/ddprof/DatadogProfilerConfig.java index 4e161dada37b..959dc24b616c 100644 --- a/dd-java-agent/agent-profiling/profiling-ddprof/src/main/java/com/datadog/profiling/ddprof/DatadogProfilerConfig.java +++ b/dd-java-agent/agent-profiling/profiling-ddprof/src/main/java/com/datadog/profiling/ddprof/DatadogProfilerConfig.java @@ -412,11 +412,10 @@ public static long getLong(ConfigProvider configProvider, String key) { } public static boolean useJvmtiWallclockSampler(ConfigProvider configProvider) { - return !isWallClockProfilerEnabled(configProvider) - && getBoolean( - configProvider, - PROFILING_DATADOG_PROFILER_WALL_JVMTI, - PROFILING_DATADOG_PROFILER_WALL_JVMTI_DEFAULT); + return getBoolean( + configProvider, + PROFILING_DATADOG_PROFILER_WALL_JVMTI, + PROFILING_DATADOG_PROFILER_WALL_JVMTI_DEFAULT); } private static String normalizeKey(String key) {