From 3ddcbaa6c71ce84e817529a3f88d52c47257afa2 Mon Sep 17 00:00:00 2001 From: jgreene Date: Wed, 28 May 2008 16:22:37 +0000 Subject: [PATCH] Add performance info git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@440 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/test/test/javassist/bytecode/analysis/ErrorFinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/test/javassist/bytecode/analysis/ErrorFinder.java b/src/test/test/javassist/bytecode/analysis/ErrorFinder.java index a2128325..e131ffb9 100644 --- a/src/test/test/javassist/bytecode/analysis/ErrorFinder.java +++ b/src/test/test/javassist/bytecode/analysis/ErrorFinder.java @@ -52,9 +52,10 @@ public class ErrorFinder { System.out.println("START: " + methodName); Analyzer analyzer = new Analyzer(); + long time = System.currentTimeMillis(); try { analyzer.analyze(clazz, method.getMethodInfo2()); - System.out.println("SUCCESS: " + methodName); + System.out.println("SUCCESS: " + methodName + " - " + (System.currentTimeMillis() - time)); } catch (Exception e) { System.out.println("FAIL: " + methodName + " - " + (e.getMessage() == null ? e.getClass().getName() : e.getMessage())); } -- 2.39.5