From 133440a7a6c71175945a02c00e29b4a23c96075f Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sun, 22 Nov 2020 23:12:04 +0100 Subject: [PATCH] some debug lines --- source/net/yacy/kelondro/util/MemoryStrategy.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/net/yacy/kelondro/util/MemoryStrategy.java b/source/net/yacy/kelondro/util/MemoryStrategy.java index 72fb9172a..d7d0475c6 100644 --- a/source/net/yacy/kelondro/util/MemoryStrategy.java +++ b/source/net/yacy/kelondro/util/MemoryStrategy.java @@ -135,4 +135,14 @@ public abstract class MemoryStrategy { */ protected void setProperMbyte(@SuppressWarnings("unused") final long mbyte) { } + + public static void main(String[] args) { + MemoryStrategy sms = new StandardMemoryStrategy(); + System.out.println("StandardMemoryStrategy / memoryFree : " + sms.free()); + System.out.println("StandardMemoryStrategy / memoryTotal : " + sms.total()); + + MemoryStrategy gms = new GenerationMemoryStrategy(); + System.out.println("GenerationMemoryStrategy / memoryFree : " + sms.free()); + System.out.println("GenerationMemoryStrategy / memoryTotal : " + sms.total()); + } }