PerformanceMeter meter = createMeter("layout 1155 widgets");
PerformanceMeter meter = createMeter("layout 50 composites 20 times");
public void test_layout() {	PerformanceMeter meter = createMeter("layout 1155 widgets");	int samples;		for(samples = 0; samples < 10; samples++) {		Shell shell = new Shell(display);		shell.setLayout(new FillLayout());		for (int i = 0; i < 5; i++) {			Composite c = new Composite(shell, SWT.NONE);			c.setLayout(new RowLayout());			for (int j = 0; j < 5; j++) {				Composite c2 = new Composite(c, SWT.NONE);				c2.setLayout(new GridLayout(5, false));				for (int k = 0; k < 5; k++) {					Composite c3 = new Composite(c2, SWT.NONE);					c3.setLayout(new GridLayout(4, true));					Button b = new Button(c3, SWT.PUSH);					Label label = new Label(c3, SWT.NONE);					b = new Button(c3, SWT.PUSH);					label = new Label(c3, SWT.NONE);					b = new Button(c3, SWT.PUSH);					label = new Label(c3, SWT.NONE);					b = new Button(c3, SWT.PUSH);					label = new Label(c3, SWT.NONE);				}			}		}		shell.open();		while(display.readAndDispatch());		meter.start();		for(int numlayouts = 0; numlayouts < 100; numlayouts++) {			shell.layout(true, true);		}		meter.stop();		shell.dispose();		while(display.readAndDispatch());	}		disposeMeter(meter);}