From f1b5db2c4554111a08b2a144d241d4782b1cdd47 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 4 Dec 2013 12:59:30 +0100 Subject: [PATCH] - performance graph does not shop peer ping in memory monitor any more - after a forced GC, the PerformanceMemory view switches to automatic update by default --- htroot/PerformanceGraph.java | 6 +++- htroot/PerformanceMemory_p.html | 6 ++-- htroot/PerformanceMemory_p.java | 10 ++++-- htroot/Performance_p.html | 4 +-- .../yacy/peers/graphics/ProfilingGraph.java | 36 ++++++++++--------- 5 files changed, 36 insertions(+), 26 deletions(-) diff --git a/htroot/PerformanceGraph.java b/htroot/PerformanceGraph.java index c84b44e25..7e1f34d7b 100644 --- a/htroot/PerformanceGraph.java +++ b/htroot/PerformanceGraph.java @@ -44,13 +44,17 @@ public class PerformanceGraph { final int width = post.getInt("width", 660); final int height = post.getInt("height", 240); final boolean showMemory = !post.containsKey("nomem"); + final boolean showPeers = !post.containsKey("nopeers"); long t = System.currentTimeMillis(); if (t - indexSizeTime > 10000) { indeSizeCache = sb.index.fulltext().collectionSize(); indexSizeTime = t; } - RasterPlotter graph = ProfilingGraph.performanceGraph(width, height, indeSizeCache + " URLS / " + sb.index.RWICount() + " WORDS IN INDEX / " + sb.index.RWIBufferCount() + " WORDS IN CACHE", showMemory); + RasterPlotter graph = ProfilingGraph.performanceGraph( + width, height, + indeSizeCache + " URLS / " + sb.index.RWICount() + " WORDS IN INDEX / " + sb.index.RWIBufferCount() + " WORDS IN CACHE", + showMemory, showPeers); return graph; } diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.html index 163d8a43f..c1ef9995e 100644 --- a/htroot/PerformanceMemory_p.html +++ b/htroot/PerformanceMemory_p.html @@ -9,7 +9,7 @@