LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Wed May 28 17:03:17 CEST 2008
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/08/05 28:17:03

    Modified: jop/java/target/src/test/gcinc Latency.java
    Log:
    output with Dbg


    Revision Changes Path
    1.7 jop/java/target/src/test/gcinc/Latency.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gcinc/Latency.java.diff?r1=1.6&r2=1.7

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Latency.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/gcinc/Latency.java,v
    retrieving revision 1.6
    retrieving revision 1.7
    diff -u -b -r1.6 -r1.7
    --- Latency.java 24 Feb 2008 19:07:42 -0000 1.6
    +++ Latency.java 28 May 2008 15:03:17 -0000 1.7
    @@ -22,6 +22,8 @@

    import java.util.Vector;

    +import util.Dbg;
    +
    import com.jopdesign.sys.Const;
    import com.jopdesign.sys.GC;
    import com.jopdesign.sys.Native;
    @@ -140,13 +142,18 @@

    public void run() {
    for (;;) {
    - System.out.print("G");
    + Dbg.wr('G');
    GC.gc();
    waitForNextPeriod();
    }
    }
    }

    + /**
    + * Use Dbg instead
    + * @author martin
    + *
    + */
    static class LogThread extends RtThread {

    public LogThread(int prio, int us) {
    @@ -158,17 +165,16 @@
    waitForNextPeriod();
    System.out.println();
    if (hft!=null) {
    - System.out.print("hft max=");
    - System.out.println(hft.max);
    - System.out.print("hft min=");
    - System.out.println(hft.min);
    -
    + Dbg.wr("hft max=", hft.max);
    + Dbg.lf();
    + Dbg.wr("hft min=", hft.min);
    + Dbg.lf();
    }
    if (mft!=null) {
    - System.out.print("mft max=");
    - System.out.println(mft.max);
    - System.out.print("mft min=");
    - System.out.println(mft.min);
    + Dbg.wr("mft max=", mft.max);
    + Dbg.lf();
    + Dbg.wr("mft min=", mft.min);
    + Dbg.lf();
    }
    }
    }
    @@ -206,6 +212,7 @@
    */
    public static void main(String[] args) {

    + Dbg.initSerWait();
    // v = new Vector(20);
    sl = new SimpleList();




     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.