Package org.springframework.util

Examples of org.springframework.util.StopWatch.prettyPrint()


            String schema = dataSetConfiguration.getSchema();
            DatabaseConnection databaseConnection = getDatabaseConnection(connection, schema, dataSetConfiguration);
            sw.start("populating");
            operation.execute(databaseConnection, dataSet);
            sw.stop();
            LOGGER.debug(sw.prettyPrint());

        } catch (BatchUpdateException e) {
            LOGGER.error("BatchUpdateException while loading dataset", e);
            LOGGER.error("Caused by : ", e.getNextException());
            throw e;
View Full Code Here


            } else {
                System.out.println("No contacts found which this user has permission to");
            }

            System.out.println();
            System.out.println(stopWatch.prettyPrint());
        }

        SecurityContextHolder.clearContext();
    }
View Full Code Here

      }

      stopWatch.stop();
    }

    log.debug( stopWatch.prettyPrint() );
  }

  @NotNull
  private Collection<ObjectPrefetcher<Object>> findObjectPrefetcher( @NotNull Object current ) {
    List<ObjectPrefetcher<Object>> responsibles = new ArrayList<ObjectPrefetcher<Object>>();
View Full Code Here

    StopWatch stopWatch = new StopWatch();
    stopWatch.start();
    context.refresh();
    assertNotNull(context.getBean(Foo.class));
    stopWatch.stop();
    System.out.println(stopWatch.prettyPrint());
    context.close();
  }

}
View Full Code Here

    stopWatch.start("Creating");
      for (int i = 0; i < ITERATIONS; i++) {
          ctx.getBean("ParentBeanGroup");
      }
      stopWatch.stop();
      System.out.println(stopWatch.prettyPrint());
   }

}
View Full Code Here

    for (int i = 0; i < howmany; i++) {
      adrian.getAge();
    }

    sw.stop();
    System.out.println(sw.prettyPrint());
    return sw.getLastTaskTimeMillis();
  }

  private long testBeforeAdviceWithoutJoinPoint(String file, int howmany, String technology) {
    ClassPathXmlApplicationContext bf = new ClassPathXmlApplicationContext(file, CLASS);
View Full Code Here

    for (int i = 0; i < howmany; i++) {
      adrian.getName();
    }

    sw.stop();
    System.out.println(sw.prettyPrint());
    return sw.getLastTaskTimeMillis();
  }

  private long testAfterReturningAdviceWithoutJoinPoint(String file, int howmany, String technology) {
    ClassPathXmlApplicationContext bf = new ClassPathXmlApplicationContext(file, CLASS);
View Full Code Here

    for (int i = 0; i < howmany; i++) {
      adrian.setAge(i);
    }

    sw.stop();
    System.out.println(sw.prettyPrint());
    return sw.getLastTaskTimeMillis();
  }

  private long testMix(String file, int howmany, String technology) {
    ClassPathXmlApplicationContext bf = new ClassPathXmlApplicationContext(file, CLASS);
View Full Code Here

      adrian.getLawyer();
      adrian.getSpouse();
    }

    sw.stop();
    System.out.println(sw.prettyPrint());
    return sw.getLastTaskTimeMillis();
  }

}
View Full Code Here

    for (int i = 0; i < INVOCATIONS; i++) {
      target.getAge();
    }
    sw.stop();

    System.out.println(sw.prettyPrint());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.