From 3ef9f301ba77f0a3ff96a94dd45aba7b8b9fcd8c Mon Sep 17 00:00:00 2001 From: sixcooler Date: Mon, 14 Nov 2011 12:16:07 +0100 Subject: [PATCH] some customize on Memory-Performance-Graph --- source/net/yacy/kelondro/util/MemoryTracker.java | 4 ++-- source/net/yacy/peers/graphics/ProfilingGraph.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net/yacy/kelondro/util/MemoryTracker.java b/source/net/yacy/kelondro/util/MemoryTracker.java index 7d6e87b33..3da30b35d 100644 --- a/source/net/yacy/kelondro/util/MemoryTracker.java +++ b/source/net/yacy/kelondro/util/MemoryTracker.java @@ -33,7 +33,7 @@ public class MemoryTracker extends Thread { private static MemoryTracker systemProfiler = null; public static void startSystemProfiling() { - systemProfiler = new MemoryTracker(1500); + systemProfiler = new MemoryTracker(3000); systemProfiler.start(); } @@ -52,7 +52,7 @@ public class MemoryTracker extends Thread { public void run() { try { while (running) { - EventTracker.update(EventTracker.EClass.MEMORY, Long.valueOf(MemoryControl.used()), true); + EventTracker.update(EventTracker.EClass.MEMORY, Long.valueOf(MemoryControl.available()), true); try { Thread.sleep(this.delaytime); } catch (final InterruptedException e) { diff --git a/source/net/yacy/peers/graphics/ProfilingGraph.java b/source/net/yacy/peers/graphics/ProfilingGraph.java index da0bc9c8a..1ebe95ab0 100644 --- a/source/net/yacy/peers/graphics/ProfilingGraph.java +++ b/source/net/yacy/peers/graphics/ProfilingGraph.java @@ -121,8 +121,8 @@ public class ProfilingGraph { bytes = ((Long) event.payload).longValue(); x1 = (int) (time/1000); y1 = (int) (bytes / 1024 / 1024); - chart.setColor("AAAAFF"); - chart.chartDot(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x1, y1, 2, null, 0); + // chart.setColor("AAAAFF"); + // chart.chartDot(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x1, y1, 2, null, 0); chart.setColor("0000FF"); if (x0 < 0) chart.chartLine(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x0, y0, x1, y1); x0 = x1; y0 = y1;