diff options
author | Bob Lee <crazybob@google.com> | 2009-08-13 14:41:54 -0700 |
---|---|---|
committer | Bob Lee <crazybob@google.com> | 2009-08-17 15:36:15 -0700 |
commit | 9d2d6e14b0932b6a74e01f393d5efed61458941b (patch) | |
tree | 833ec805d5f8eded7819bd98fea6587ed2098501 /tools/preload/loadclass/LoadClass.java | |
parent | 802527c6a8a91f7da72f2ce9f6cb3cc342582127 (diff) |
Simplified algorithm used to generate the preloaded-classes list. Generated a new preloaded-classes file.
Diffstat (limited to 'tools/preload/loadclass/LoadClass.java')
-rw-r--r-- | tools/preload/loadclass/LoadClass.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/preload/loadclass/LoadClass.java b/tools/preload/loadclass/LoadClass.java index 471cc842a8e0..a71b6a8b145e 100644 --- a/tools/preload/loadclass/LoadClass.java +++ b/tools/preload/loadclass/LoadClass.java @@ -35,7 +35,11 @@ class LoadClass { if (args.length > 0) { try { + long start = System.currentTimeMillis(); Class.forName(args[0]); + long elapsed = System.currentTimeMillis() - start; + Log.i("LoadClass", "Loaded " + args[0] + " in " + elapsed + + "ms."); } catch (ClassNotFoundException e) { Log.w("LoadClass", e); return; |