Zhen Wang created SPARK-60612:
---------------------------------
Summary: Remove unnecessary dump execution in SparkAsyncProfiler
Key: SPARK-60612
URL: https://issues.apache.org/jira/browse/SPARK-60612
Project: Spark
Issue Type: Improvement
Components: Spark Core
Affects Versions: 5.0.0
Reporter: Zhen Wang
SparkAsyncProfiler.writeChunk executes {{dump}} immediately after {{stop}}, but
this call has no effect for JFR output.
In async-profiler:
*
[Profiler::stop|https://github.com/async-profiler/async-profiler/blob/v4.5/src/profiler.cpp#L1096]
stops the JFR recording and sets {{_state = IDLE}}.
*
[Profiler::dump|https://github.com/async-profiler/async-profiler/blob/v4.5/src/profiler.cpp#L1144-L1150]
only flushes JFR data when {{_state == RUNNING}}.
Since the profiler is already in the {{IDLE}} state, the subsequent {{dump}}
does nothing.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]