Skip to content

Tag: profiling

How to profile branch prediction hitrate in Java

Is there a tool available to profile java applications regarding branch (mis)prediction statistics for if statements? I know VisualVM and JDK Mission Control but did not find such functionality. Answer No such tool exists. It is generally impossible to extract that information from CPU, you can either measure…

Profiling Java code changes execution times

I’m trying to optimize my code, but it’s giving me problems. I’ve got this list of objects: There is 1700 objects with unique id (0-1699) and some name, it’s used to decode what type of data I get later on. The method that I try to optimize works like that: This method is called about …

VisualVM launcher error

I’m trying to use the Eclipse VisualVM launcher. It seems pretty nice, except that it seems to spawn an instance if VisualVM too late to do any profiling of my application. My application finishes execution before the profiler is even initialized; once it starts up, an error window pops up, saying: cann…