diff options
author | Luck <git@lucko.me> | 2020-06-23 12:27:34 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2020-06-23 12:27:34 +0100 |
commit | 85561633292550209a1461347f8446b54552b391 (patch) | |
tree | c5bf09a6a0a1bb0324f8e14ecda790184a183c2c /spark-forge | |
parent | a2af3f8f7e3693f3e445d2998938bf448d47c35f (diff) | |
download | spark-85561633292550209a1461347f8446b54552b391.tar.gz spark-85561633292550209a1461347f8446b54552b391.tar.bz2 spark-85561633292550209a1461347f8446b54552b391.zip |
Add n-cpus and heap usage to platform info
Diffstat (limited to 'spark-forge')
3 files changed, 14 insertions, 7 deletions
diff --git a/spark-forge/src/main/java/me/lucko/spark/forge/ForgePlatformInfo.java b/spark-forge/src/main/java/me/lucko/spark/forge/ForgePlatformInfo.java index 0544072..344882b 100644 --- a/spark-forge/src/main/java/me/lucko/spark/forge/ForgePlatformInfo.java +++ b/spark-forge/src/main/java/me/lucko/spark/forge/ForgePlatformInfo.java @@ -20,12 +20,11 @@ package me.lucko.spark.forge; -import me.lucko.spark.common.PlatformInfo; +import me.lucko.spark.common.platform.AbstractPlatformInfo; import net.minecraftforge.versions.forge.ForgeVersion; import net.minecraftforge.versions.mcp.MCPVersion; -public class ForgePlatformInfo implements PlatformInfo { - +public class ForgePlatformInfo extends AbstractPlatformInfo { private final Type type; public ForgePlatformInfo(Type type) { diff --git a/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeClientSparkPlugin.java b/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeClientSparkPlugin.java index 278e838..66fd3ab 100644 --- a/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeClientSparkPlugin.java +++ b/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeClientSparkPlugin.java @@ -27,10 +27,14 @@ import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.suggestion.SuggestionProvider; import com.mojang.brigadier.suggestion.Suggestions; import com.mojang.brigadier.suggestion.SuggestionsBuilder; -import me.lucko.spark.common.PlatformInfo; +import me.lucko.spark.common.platform.PlatformInfo; import me.lucko.spark.common.sampler.tick.TickHook; import me.lucko.spark.common.sampler.tick.TickReporter; -import me.lucko.spark.forge.*; +import me.lucko.spark.forge.ForgeCommandSender; +import me.lucko.spark.forge.ForgePlatformInfo; +import me.lucko.spark.forge.ForgeSparkMod; +import me.lucko.spark.forge.ForgeTickHook; +import me.lucko.spark.forge.ForgeTickReporter; import net.minecraft.client.Minecraft; import net.minecraft.client.network.play.ClientPlayNetHandler; import net.minecraft.command.ICommandSource; diff --git a/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeServerSparkPlugin.java b/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeServerSparkPlugin.java index c433c95..3978ba4 100644 --- a/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeServerSparkPlugin.java +++ b/spark-forge/src/main/java/me/lucko/spark/forge/plugin/ForgeServerSparkPlugin.java @@ -27,10 +27,14 @@ import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.suggestion.SuggestionProvider; import com.mojang.brigadier.suggestion.Suggestions; import com.mojang.brigadier.suggestion.SuggestionsBuilder; -import me.lucko.spark.common.PlatformInfo; +import me.lucko.spark.common.platform.PlatformInfo; import me.lucko.spark.common.sampler.tick.TickHook; import me.lucko.spark.common.sampler.tick.TickReporter; -import me.lucko.spark.forge.*; +import me.lucko.spark.forge.ForgeCommandSender; +import me.lucko.spark.forge.ForgePlatformInfo; +import me.lucko.spark.forge.ForgeSparkMod; +import me.lucko.spark.forge.ForgeTickHook; +import me.lucko.spark.forge.ForgeTickReporter; import net.minecraft.command.CommandSource; import net.minecraft.command.ICommandSource; import net.minecraft.entity.player.PlayerEntity; |