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