blob: 978587172372cdd5b2ada987d04bd07418bf8be3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.tests.runtime.perf;
import junit.framework.*;
import org.eclipse.test.performance.*;
public class StartupTest extends TestCase {
public static Test suite() {
return new TestSuite(StartupTest.class);
}
public StartupTest(String methodName) {
super(methodName);
}
public void testApplicationStartup() {
PerformanceMeter meter = Performance.getDefault().createPerformanceMeter(getClass().getName() + '.' + getName());
try {
meter.stop();
meter.commit();
Performance.getDefault().assertPerformanceInRelativeBand(meter, Dimension.ELAPSED_PROCESS, -50, 5);
} finally {
meter.dispose();
}
}
}