Refactoring to generate SnapShot chart data.
This change works on JDK8u20 or later.