Example #1
0
    //
    // Runnable interface
    //
    public void run() {

      // output appropriate probes
      for (PerformanceProbe probe : list(_taskPeriod)) {
        probe.output("P");
        if (probe.doReset) {
          probe.reset();
        }
      }
    }
Example #2
0
    //
    // Runnable interface
    //
    public void run() {

      // output all active probes
      for (PerformanceProbe probe : list(ALL_RECORDERS)) {
        probe.output("F");
      }

      // close output if not standard output
      if (!outputStream.equals(System.out)) {
        outputStream.close();
      }
    }