diff options
author | jgreene <jgreene@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-05-28 16:22:37 +0000 |
---|---|---|
committer | jgreene <jgreene@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-05-28 16:22:37 +0000 |
commit | 3ddcbaa6c71ce84e817529a3f88d52c47257afa2 (patch) | |
tree | 1ba548073cba338e4087ade87ce7d8213d3f3c2f /src/test | |
parent | 2500b08feb3a8623c977cbf7284a24c1d71e96cd (diff) | |
download | javassist-3ddcbaa6c71ce84e817529a3f88d52c47257afa2.tar.gz javassist-3ddcbaa6c71ce84e817529a3f88d52c47257afa2.zip |
Add performance info
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@440 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test/javassist/bytecode/analysis/ErrorFinder.java | 3 |
1 files changed, 2 insertions, 1 deletions
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())); } |