|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm not sure your test proves Shark is available in older versions; as
-Xrun attempts to load the library named after the 'run' part. So,
-Xrunhprof loads libhprof.jnilib on OS X (on Win32: it appends .dll and
on Solaris: libhprof.so, etc).
Bogus example:
$ java -XrunaLibraryThatDoesntExist
Error occurred during initialization of VM
Could not find -Xrun library: libaLibraryThatDoesntExist.jnilib
(searched
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries:.)
Trace/BPT trap
I think to check if Shark profiling is available we should look for the
existence of:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/
libShark.jnilib
Depending on the version of Java installed the numbers will differ.
Incidentally, it does seem to be there on my (non-DP) version:
$ java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
$ java -Xinternalversion
Built on Jan 9 2004 23:07:30 by root with gcc 3.3 20030304 (build 1495)
Phil.
On Jul 1, 2004, at 9:29 AM, email@hidden wrote:
Godfrey Raftesath wrote:
| Shark appears to _not_ require any DP version:
|
| java -Xrunshark -version
| 2004-07-01 16:07:25.632 java[4341] Shark for Java is enabled...
| java version "1.4.2_03"
| Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_03-117.1)
| Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
It doesn't even seem to require 1.4.2 or Panther:
% java -XrunShark -version
Error occurred during initialization of VM
Could not find -Xrun library: libShark.jnilib (searched
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/
Libraries:.)
Trace/BPT trap
% java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.1_01-69.1)
Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)
(I don't have Shark installed, but clearly the option is recognized.)
Glen Fisher
| Home | Archives | 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 © 2011 Apple Inc. All rights reserved.