mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-21 22:31:44 +01:00
Add freeMemory to log
Cleanup
This commit is contained in:
parent
245b76be74
commit
5c2199ff49
2 changed files with 3 additions and 2 deletions
|
@ -64,10 +64,11 @@ public class GcUtil {
|
||||||
long postGcMemory = Runtime.getRuntime().totalMemory();
|
long postGcMemory = Runtime.getRuntime().totalMemory();
|
||||||
long duration = System.currentTimeMillis() - ts;
|
long duration = System.currentTimeMillis() - ts;
|
||||||
totalGCTime += duration;
|
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 - postGcMemory),
|
||||||
Utilities.readableFileSize(preGcMemory),
|
Utilities.readableFileSize(preGcMemory),
|
||||||
Utilities.readableFileSize(postGcMemory),
|
Utilities.readableFileSize(postGcMemory),
|
||||||
|
Utilities.readableFileSize(Runtime.getRuntime().freeMemory()),
|
||||||
duration,
|
duration,
|
||||||
totalInvocations,
|
totalInvocations,
|
||||||
totalGCTime / 1000d);
|
totalGCTime / 1000d);
|
||||||
|
|
|
@ -603,7 +603,7 @@ public abstract class ChartView<T extends ChartViewModel<? extends ChartDataMode
|
||||||
updateTimeLinePositions();
|
updateTimeLinePositions();
|
||||||
|
|
||||||
model.invalidateCache();
|
model.invalidateCache();
|
||||||
applyDataAndUpdate(); //3
|
applyDataAndUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateTimeLinePositions() {
|
private void updateTimeLinePositions() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue