Browse Source

REPORT-117002 feat:设计器UI性能监控

feature/x
Levy.Xie-解安森 4 months ago
parent
commit
727a94e475
  1. 4
      designer-base/src/main/java/com/fr/design/carton/CartonUtils.java
  2. 4
      designer-base/src/main/java/com/fr/design/carton/latency/DesignerLatencyMetric.java

4
designer-base/src/main/java/com/fr/design/carton/CartonUtils.java

@ -116,10 +116,10 @@ public class CartonUtils {
}
file.createNewFile();
}
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file, true));
try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file, true))) {
String outputMessage = message.replaceAll("~", "\r\n") + "," + "\r\n";
bufferedWriter.write(outputMessage);
bufferedWriter.close();
}
} catch (IOException e) {
FineLoggerFactory.getLogger().error("output fail", e);
}

4
designer-base/src/main/java/com/fr/design/carton/latency/DesignerLatencyMetric.java

@ -92,8 +92,12 @@ public class DesignerLatencyMetric {
*/
public void stop() {
if (SwitchForSwingChecker.isLatencyMonitoring()) {
if (this.executorService != null) {
this.executorService.shutdown();
}
if (this.scheduler != null) {
this.scheduler.shutdown();
}
collectAndSubmit();
}
}

Loading…
Cancel
Save