Skip to content

Commit 214bb16

Browse files
committed
make profiler lazy
1 parent 1ef939c commit 214bb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connector/profiler/src/main/scala/org/apache/spark/profiler/SparkAsyncProfiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private[spark] class SparkAsyncProfiler(conf: SparkConf, executorId: String) ext
6969
lazy private val extractionDir =
7070
Utils.createTempDir(Utils.getLocalDir(conf), "asyncProfiler").toPath
7171

72-
val profiler: Option[AsyncProfiler] = {
72+
lazy val profiler: Option[AsyncProfiler] = {
7373
Option(
7474
if (enableProfiler && AsyncProfilerLoader.isSupported) {
7575
AsyncProfilerLoader.setExtractionDirectory(extractionDir)

0 commit comments

Comments
 (0)