I've been profiling my swing application which is visual and does a lot of repainting: by calling repaint and doing paint in paintComponent().
I am using VisualVM and used the Sampler to see which methods use a lot of cpu.
A lot of my paint methods are at the top of the list, no surprise there.
But a strange effect can be seen, every time i start my application and start a cpu sample session different paint methods are at the top of the hot spots.
I find this strange because i use the exact same data set in my application.
Is it possible that something (maybe swing paint model) is messing up the visualvm results?