Java2D rendering primitives can be logged using the following Java VM property
This logging has been extended in JetBrains runtime for better tracking performance problems in IDEA platform-based products.
The extended version looks like this:
enable primitive execution time measurement
simple substring filter to see the only primitives that match the pattern
this option extended comparing with Oracle one with the printing of stack of the primitives under execution time measurement
a threshold to hide primitives having execution time less than specified (in nanoseconds)
Also, the logging now tracks some pure native routines such as working with LCD glyph cache. Here is an example