Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ private[spark] class ProcfsMetricsGetter(procfsDir: String = "/proc/") extends L
SparkEnv.get.conf.get(config.EVENT_LOG_STAGE_EXECUTOR_METRICS)
val shouldLogStageExecutorProcessTreeMetrics =
SparkEnv.get.conf.get(config.EVENT_LOG_PROCESS_TREE_METRICS)
procDirExists.get && shouldLogStageExecutorProcessTreeMetrics && shouldLogStageExecutorMetrics
System.getProperty("os.name").startsWith("Linux") && procDirExists.get &&
shouldLogStageExecutorProcessTreeMetrics && shouldLogStageExecutorMetrics
}
}

private def computePid(): Int = {
if (!isAvailable || testing) {
return -1;
return -1
}
try {
// This can be simplified in java9:
Expand All @@ -88,7 +89,7 @@ private[spark] class ProcfsMetricsGetter(procfsDir: String = "/proc/") extends L

private def computePageSize(): Long = {
if (testing) {
return 4096;
return 4096
}
try {
val cmd = Array("getconf", "PAGESIZE")
Expand Down