mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-29 17:58:56 -04:00
Remove use of Profiler from BitsquareUI
Also remove Profiler#initScene, whose body was entirely commented out and therefore dead code.
This commit is contained in:
parent
6f830d20c9
commit
78819d7e13
2 changed files with 0 additions and 15 deletions
|
@ -22,7 +22,6 @@ import io.bitsquare.gui.AWTSystemTray;
|
|||
import io.bitsquare.gui.Navigation;
|
||||
import io.bitsquare.gui.components.Popups;
|
||||
import io.bitsquare.gui.util.ImageUtil;
|
||||
import io.bitsquare.gui.util.Profiler;
|
||||
import io.bitsquare.persistence.Persistence;
|
||||
import io.bitsquare.settings.Settings;
|
||||
import io.bitsquare.user.User;
|
||||
|
@ -66,7 +65,6 @@ public class BitsquareUI extends Application {
|
|||
|
||||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
Profiler.printMsgWithTime("Bitsquare.start called");
|
||||
BitsquareUI.primaryStage = primaryStage;
|
||||
|
||||
Thread.currentThread().setUncaughtExceptionHandler((thread, throwable) -> Popups.handleUncaughtExceptions
|
||||
|
@ -118,8 +116,6 @@ public class BitsquareUI extends Application {
|
|||
primaryStage.setMinWidth(75);
|
||||
primaryStage.setMinHeight(50);
|
||||
|
||||
Profiler.initScene(primaryStage.getScene());
|
||||
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import com.google.common.base.Stopwatch;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javafx.animation.AnimationTimer;
|
||||
import javafx.scene.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -56,14 +55,4 @@ public class Profiler {
|
|||
};
|
||||
fpsTimer.start();
|
||||
}
|
||||
|
||||
public static void initScene(Scene scene) {
|
||||
/* PerformanceTracker tracker = PerformanceTracker.getSceneTracker(scene);
|
||||
Timeline timeline = new Timeline(
|
||||
new KeyFrame(Duration.seconds(1), t -> {
|
||||
log.trace("FPS (tracker.getAverageFPS) = " + tracker.getAverageFPS());
|
||||
}));
|
||||
timeline.setCycleCount(Timeline.INDEFINITE);
|
||||
timeline.play();*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue