* doStandbyStateChanged instead.
*
* @param standby
*/
public void standbyStateChanged(boolean standby, boolean isStandbyPartNeeded) {
PerformanceStats setStandbyStateStats = null;
long start = 0;
if (Log.logPerformance) {
if (logUIcreationTime && PerformanceStats.ENABLED) {
PerformanceStats stats = PerformanceStats.getStats(
IIntroConstants.PERF_UI_ZOOM, IIntroConstants.INTRO);
stats.endRun();
Util
.logPerformanceMessage(
"(perf stats) time spent in UI code before content is displayed (standbyStateChanged event is fired) ", //$NON-NLS-1$
stats.getRunningTime());
stats.reset();
}
// standby time.
setStandbyStateStats = PerformanceStats.getStats(
IIntroConstants.PERF_SET_STANDBY_STATE, IIntroConstants.INTRO);
setStandbyStateStats.startRun();
start = System.currentTimeMillis();
}
doStandbyStateChanged(standby, isStandbyPartNeeded);
// now log performance
if (Log.logPerformance) {
if (PerformanceStats.ENABLED) {
setStandbyStateStats.endRun();
Util
.logPerformanceMessage(
"(perf stats) setting standby state (zooming, displaying content) took:", //$NON-NLS-1$
+setStandbyStateStats.getRunningTime());
setStandbyStateStats.reset();
} else
Util
.logPerformanceTime(
"setting standby state (zooming, generating content, setText() ) took:", //$NON-NLS-1$
+start);
if (logUIcreationTime) {
if (PerformanceStats.ENABLED) {
PerformanceStats stats = PerformanceStats.getStats(
IIntroConstants.PERF_VIEW_CREATION_TIME,
IIntroConstants.INTRO);
stats.endRun();
Util
.logPerformanceMessage(
"END - (perf stats): creating CustomizableIntroPart view took:", //$NON-NLS-1$
+stats.getRunningTime());
stats.reset();
} else
Util.logPerformanceTime(
"END: creating CustomizableIntroPart view took:", //$NON-NLS-1$
+IntroPlugin.getDefault().gettUICreationStartTime());