| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
lola:~ jstewart$ time java -agentlib:hprof=cpu=times -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode) Dumping CPU usage by timing methods ... done.
real 0m45.576s user 0m0.205s sys 0m0.120s
The contents of java.hprof.txt
On Sep 28, 2006, at 8:50 PM, Joshua Stewart wrote:
Here's the results of 'time java -version' on my MacBook Pro. I've also included the info about my system.
lola:~ jstewart$ time java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
real 0m59.110s user 0m0.101s sys 0m0.152s
You might try profiling...
time java -agentlib:hprof=cpu=times -version
java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode) Dumping CPU usage by timing methods ... done.
real 0m1.408s user 0m0.324s sys 0m0.132s
and see what is using the most time at the end of the java.hprof.txt file
CPU TIME (ms) BEGIN (total = 268) Thu Sep 28 21:00:18 2006 rank self accum count trace method 1 8.96% 8.96% 1 300152 sun.misc.Version.print 2 8.96% 17.91% 1 300151 sun.misc.Version.print 3 7.84% 25.75% 3 300137 java.io.PrintStream.println
Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
| References: | |
| >Re: After each boot, slow Java startup, then no problems (From: Greg Guerin <email@hidden>) | |
| >Re: After each boot, slow Java startup, then no problems (From: Joshua Stewart <email@hidden>) | |
| >Re: After each boot, slow Java startup, then no problems (From: Michael Hall <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.