JDK-8099713 : Need exit hook for measuring startup
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2008-11-21
  • Updated: 2015-06-16
  • Resolved: 2009-04-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx1.2Resolved
Related Reports
Duplicate :  
Description
The startup test for JavaFX, XFramer.fx, shows high variability, making it hard to zero in on our "true" startup time.

What we want to measure is the time it takes to reach first paint.  In Java this is done by exiting as soon as the first paint happens.  The problem in FX, at least in part, is that we don't have access to the AWT/Swing paint() methods, and so can't "override paint()" to add the shutdown hook.  The XFramer.fx behavior is less deterministic, and it is suspected that sometimes the paint happens, and sometimes it doesn't - thus the variability.

Adding an internal flag/property to exit once the first paint has taken place should make a big improvement.

Comments
I'm calling this done - we should have what we need.
15-04-2009

If this issue is resolved, please mark it as such.
15-04-2009

This can now be done using the PerformanceTracker.onFirstPulse hook.
09-04-2009