is there a replacement for Shark in xcode 4?
I recently installed Xcode 4. Unfortunately, I can't find the shark profiler, which was very convenient for profiling java applications. Did apple remove it? (and if so, why?) is there some replacement for it in Xcode 4?
(I actually read in another forum that I am not the first one to have this problem, and people who actually installed xcode4 could not find Shark either.)
Apple now includes the Java VisualVM with their developer tools for profiling Java applications. You can find it in /Developer/Applications/Utilities or /usr/share/java/Tools.
Instruments is intended as a replacement for Shark. Most of the same functionality is in there, it's just moved around.
Sadly, my favorite Shark feature (ASM hints) appears to be gone in Instruments. :(