Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.StopWatch


    final TestReportDesignerContext designerContext = new TestReportDesignerContext();
    final int idx = designerContext.addMasterReport(report);
    final ReportRenderContext masterContext = designerContext.getReportRenderContext(idx);

    final SharedElementRenderer sharedRenderer = masterContext.getSharedRenderer();
    final StopWatch w = StopWatch.startNew();
    run(mrLabel2, sharedRenderer);
    DebugLog.log(w);
  }
View Full Code Here


    CompoundDataFactory dataFactory = (CompoundDataFactory) report.getDataFactory();
    SequenceDataFactory sequenceDf = (SequenceDataFactory) dataFactory.getReference(0);
    PerformanceTestSequence sequence = (PerformanceTestSequence) sequenceDf.getSequence("Query 1");
    sequence.setParameter("limit", 20000);

    StopWatch sw = StopWatch.startNew();
    DebugReportRunner.createXmlFlow(report);
    DebugLog.log(sw);
  }
View Full Code Here

    PerformanceTestSequence sequence = (PerformanceTestSequence) sequenceDf.getSequence("Query 1");
    sequence.setParameter("limit", 20000);

    // ModelPrinter.INSTANCE.print(DebugReportRunner.layoutPage(report, 0));

    StopWatch sw = StopWatch.startNew();
    LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 5);
    //ModelPrinter.INSTANCE.print(logicalPageBox);
    DebugLog.log(sw);

//    ModelPrinter.INSTANCE.print(logicalPageBox);
View Full Code Here

      {
        mod.markError();
        continue;
      }

      final StopWatch stopWatch = StopWatch.startNew();
      if (mod.initialize(this.booter))
      {
        if (LOGGER.isDebugEnabled())
        {
          LOGGER.debug("Init: " +
              new PadMessage(mod.getModule().getModuleClass(), 70) +
              " [" + mod.getModule().getSubSystem() + ']');
        }
      }
      times.add(new BootTimeEntry(mod.getModule().getModuleClass(), stopWatch.getElapsedTime()));
    }

    if (trackBootTime)
    {
      Collections.sort(times);
View Full Code Here

    final int numThreads = Math.max(1, ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty
        ("org.pentaho.reporting.engine.classic.core.testsupport.gold.MaxWorkerThreads",
            Math.max (1, Runtime.getRuntime().availableProcessors() - 1)));

    StopWatch w = new StopWatch();
    w.start();
    try
    {
      if (numThreads == 1)
      {
        runAllGoldReportsSerial();
      }
      else
      {
        runAllGoldReportsInParallel(numThreads);
      }
    }
    finally
    {
      System.out.println(w.toString());
    }
  }
View Full Code Here

    for (int i = 0; i < 10; i += 1)
    {
      DebugReportRunner.execGraphics2D(report);
    }

    final StopWatch sw = new StopWatch();
    sw.start();
    for (int i = 0; i < 100; i += 1)
    {
      DebugReportRunner.execGraphics2D(report);
    }
    sw.stop();
    DebugLog.log(sw.toString());

  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.StopWatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.