Skip to content

Commit

Permalink
small corrections to profiling generation
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@994 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Oct 28, 2005
1 parent d656e2b commit 2dc12c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/dbtest.java
Expand Up @@ -15,6 +15,7 @@
import de.anomic.kelondro.kelondroIndex;
import de.anomic.kelondro.kelondroTree;
import de.anomic.tools.ImageChart;
import de.anomic.server.serverMemory;

public class dbtest {

Expand Down Expand Up @@ -237,11 +238,11 @@ public void run() {
while(run) {
memChart.setColor("FF0000");
seconds1 = (int) ((System.currentTimeMillis() - start) / 1000);
kilobytes1 = (int) (Runtime.getRuntime().freeMemory() / 1024);
kilobytes1 = (int) (serverMemory.used() / 1024);
memChart.chartLine(ImageChart.DIMENSION_BOTTOM, ImageChart.DIMENSION_LEFT, seconds0, kilobytes0, seconds1, kilobytes1);
seconds0 = seconds1;
kilobytes0 = kilobytes1;
try {Thread.sleep(200);} catch (InterruptedException e) {}
try {Thread.sleep(100);} catch (InterruptedException e) {}
}
try {
memChart.toPNG(true, outputFile);
Expand Down

0 comments on commit 2dc12c4

Please sign in to comment.