Skip to content

Commit 922d0f2

Browse files
committed
Use same merge mode as default Spark
1 parent 58eaf44 commit 922d0f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fabric/src/main/java/org/embeddedt/modernfix/fabric/spark/SparkLaunchProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void stop(String key) {
7171
private static void output(String key, Sampler sampler) {
7272
executor.execute(() -> {
7373
ModernFixMixinPlugin.instance.logger.warn("Stage [{}] profiler has stopped! Uploading results...", key);
74-
byte[] output = sampler.formCompressedDataPayload(new Sampler.ExportProps(platformInfo, commandSender, ThreadNodeOrder.BY_TIME, "Stage: " + key, MergeMode.separateParentCalls(new MethodDisambiguator()), platform.getClassSourceLookup()));
74+
byte[] output = sampler.formCompressedDataPayload(new Sampler.ExportProps(platformInfo, commandSender, ThreadNodeOrder.BY_TIME, "Stage: " + key, MergeMode.sameMethod(new MethodDisambiguator()), platform.getClassSourceLookup()));
7575
try {
7676
String urlKey = SparkPlatform.BYTEBIN_CLIENT.postContent(output, mediaType).key();
7777
String url = "https://spark.lucko.me/" + urlKey;

forge/src/main/java/org/embeddedt/modernfix/forge/spark/SparkLaunchProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static void stop(String key) {
7272
private static void output(String key, Sampler sampler) {
7373
executor.execute(() -> {
7474
ModernFixMixinPlugin.instance.logger.warn("Stage [{}] profiler has stopped! Uploading results...", key);
75-
SparkSamplerProtos.SamplerData output = sampler.toProto(platform, commandSender, ThreadNodeOrder.BY_TIME, "Stage: " + key, MergeMode.separateParentCalls(new MethodDisambiguator()), platform.createClassSourceLookup());
75+
SparkSamplerProtos.SamplerData output = sampler.toProto(platform, commandSender, ThreadNodeOrder.BY_TIME, "Stage: " + key, MergeMode.sameMethod(new MethodDisambiguator()), platform.createClassSourceLookup());
7676
try {
7777
String urlKey = platform.getBytebinClient().postContent(output, mediaType).key();
7878
String url = "https://spark.lucko.me/" + urlKey;

0 commit comments

Comments
 (0)