Canvas "composite layer" event occurring at end of frame causing poor FPS

As shown in the image below, the frame should be exceptionally fast (60fps) however it is taking 74.2ms to complete! The root cause seems to be the "composite layer" event that occurs at the end of the frame, why is it taking so long to occur?

enter image description here