Skip to content

Commit ff81fcd

Browse files
committed
remove performance counter
it was causing many memory leaks
1 parent b2262fc commit ff81fcd

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88

99
allprojects {
1010
group = "net.azisaba.loreeditor"
11-
version = "1.3.0"
11+
version = "1.3.1"
1212

1313
apply {
1414
plugin("java")

common/src/main/java/net/azisaba/loreeditor/common/network/PacketPreHandler.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.bukkit.plugin.Plugin;
2525
import org.jetbrains.annotations.NotNull;
2626
import org.jetbrains.annotations.Nullable;
27-
import xyz.acrylicstyle.util.PerformanceCounter;
2827

2928
import java.util.List;
3029
import java.util.concurrent.atomic.AtomicInteger;
@@ -33,7 +32,6 @@
3332
import java.util.stream.Collectors;
3433

3534
public class PacketPreHandler extends ChannelDuplexHandler {
36-
private static final PerformanceCounter PROCESS_ITEM_PERF_COUNTER = new PerformanceCounter(PerformanceCounter.Unit.NANOSECONDS);
3735
private final Plugin plugin;
3836
private final Player player;
3937

@@ -42,10 +40,6 @@ public PacketPreHandler(@NotNull Plugin plugin, @NotNull Player player) {
4240
this.player = player;
4341
}
4442

45-
public static @NotNull String getPerformanceStats(boolean multiline) {
46-
return PROCESS_ITEM_PERF_COUNTER.getDetails(multiline);
47-
}
48-
4943
@Override
5044
public void channelRead(@NotNull ChannelHandlerContext ctx, @NotNull Object msg) throws Exception {
5145
// client -> server

0 commit comments

Comments
 (0)