Add freeMemory to log

Cleanup
This commit is contained in:
chimp1984 2021-11-10 12:32:18 +01:00
parent 245b76be74
commit 5c2199ff49
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 3 additions and 2 deletions

View file

@ -64,10 +64,11 @@ public class GcUtil {
long postGcMemory = Runtime.getRuntime().totalMemory();
long duration = System.currentTimeMillis() - ts;
totalGCTime += duration;
log.info("GC reduced memory by {}. Total memory before/after: {}/{}. Took {} ms. Total GC invocations: {} / Total GC time {} sec",
log.info("GC reduced memory by {}. Total memory before/after: {}/{}. Free memory: {}. Took {} ms. Total GC invocations: {} / Total GC time {} sec",
Utilities.readableFileSize(preGcMemory - postGcMemory),
Utilities.readableFileSize(preGcMemory),
Utilities.readableFileSize(postGcMemory),
Utilities.readableFileSize(Runtime.getRuntime().freeMemory()),
duration,
totalInvocations,
totalGCTime / 1000d);

View file

@ -603,7 +603,7 @@ public abstract class ChartView<T extends ChartViewModel<? extends ChartDataMode
updateTimeLinePositions();
model.invalidateCache();
applyDataAndUpdate(); //3
applyDataAndUpdate();
}
private void updateTimeLinePositions() {