Author: cwiklik Date: Wed Jan 18 14:43:41 2017 New Revision: 1779335 URL: http://svn.apache.org/viewvc?rev=1779335&view=rev Log: UIMA-5255 moved code to consume CPU from initialize to process() to test cpu usage
Modified: uima/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java Modified: uima/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java?rev=1779335&r1=1779334&r2=1779335&view=diff ============================================================================== --- uima/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java (original) +++ uima/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java Wed Jan 18 14:43:41 2017 @@ -74,7 +74,6 @@ public class FixedSleepAE extends CasAnn System.out.println("Is this nuts or what, no logger!"); } - forceCpuUsage(); if ( initComplete ) { logger.log(Level.INFO, "Init bypassed in PID:TID " + pid + ":" + tid + ", already completed. "); @@ -366,7 +365,10 @@ public class FixedSleepAE extends CasAnn @Override public void process(CAS cas) throws AnalysisEngineProcessException { - String data = cas.getSofaDataString(); + + forceCpuUsage(); + + String data = cas.getSofaDataString(); // // Parms are in a single 4-token string: