Update Spark integration

This commit is contained in:
embeddedt 2025-04-09 19:22:13 -04:00 committed by DerCommander323
parent 5933886e0a
commit db75a9356c
2 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -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