Update Spark integration
This commit is contained in:
parent
5933886e0a
commit
db75a9356c
|
|
@ -41,14 +41,14 @@ public class SparkLaunchProfiler {
|
|||
public static void start(String key) {
|
||||
if (!ongoingSamplers.containsKey(key)) {
|
||||
Sampler sampler;
|
||||
SamplerSettings settings = new SamplerSettings(4000, ThreadDumper.ALL, ThreadGrouper.BY_NAME.get(), -1, false);
|
||||
SamplerSettings settings = new SamplerSettings(4000, ThreadDumper.ALL, ThreadGrouper.BY_NAME.get(), -1, false, true);
|
||||
try {
|
||||
if(USE_JAVA_SAMPLER_FOR_LAUNCH) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
sampler = new AsyncSampler(platform, settings, new SampleCollector.Execution(4000));
|
||||
} catch (UnsupportedOperationException e) {
|
||||
sampler = new JavaSampler(platform, settings, true, true);
|
||||
sampler = new JavaSampler(platform, settings);
|
||||
}
|
||||
ongoingSamplers.put(key, sampler);
|
||||
ModernFixMixinPlugin.instance.logger.warn("Profiler has started for stage [{}]...", key);
|
||||
|
|
@ -173,6 +173,11 @@ public class SparkLaunchProfiler {
|
|||
ModernFixMixinPlugin.instance.logger.warn(s);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(Level level, String s, Throwable t) {
|
||||
ModernFixMixinPlugin.instance.logger.warn(s, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlatformInfo getPlatformInfo() {
|
||||
return platformInfo;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ continuity_version=3.0.0-beta.4+1.20.2
|
|||
modmenu_version=7.0.0-beta.2
|
||||
diagonal_fences_version=4558828
|
||||
|
||||
spark_version=5759671
|
||||
spark_version=6225208
|
||||
|
||||
use_fabric_api_at_runtime=true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user