Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 184344 Details for
Bug 331632
FUP of 323514: Add performance tracking test for scenario
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
cleaned up patch
patch323514.txt (text/plain), 3.84 KB, created by
Ayushman Jain
on 2010-12-02 07:13:38 EST
(
hide
)
Description:
cleaned up patch
Filename:
MIME Type:
Creator:
Ayushman Jain
Created:
2010-12-02 07:13:38 EST
Size:
3.84 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.performance >Index: src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java,v >retrieving revision 1.48 >diff -u -r1.48 FullSourceWorkspaceModelTests.java >--- src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 27 Oct 2009 13:05:53 -0000 1.48 >+++ src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 2 Dec 2010 12:11:14 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -1283,6 +1283,94 @@ > } > } > >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=331632 >+public void testReopenSingleProject() throws CoreException { >+ tagAsSummary("Reopen a single project in a workspace", false); // do NOT put in fingerprint >+ >+ // First close all Eclipse projects >+ long startTime = 0; >+ if (PRINT) { >+ System.out.print("Close all Eclipse projects..."); >+ startTime = System.currentTimeMillis(); >+ } >+ int length=ALL_PROJECTS.length; >+ for (int j=0; j<length; j++) { >+ ALL_PROJECTS[j].getProject().close(null); >+ } >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ if (PRINT) { >+ System.out.println((System.currentTimeMillis()-startTime)+"ms"); >+ } >+ >+ >+ // Warm-up >+ if (PRINT) { >+ System.out.print("Warmup test..."); >+ startTime = System.currentTimeMillis(); >+ } >+ final int warmup = WARMUP_COUNT / 10; >+ for (int i=0; i<warmup; i++) { >+ BIG_PROJECT.getProject().close(null); >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ BIG_PROJECT.getProject().open(null); >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ AbstractJavaModelTests.waitForManualRefresh(); >+ } >+ if (PRINT) { >+ System.out.println((System.currentTimeMillis()-startTime)+"ms"); >+ } >+ >+ // Measures >+ if (PRINT) { >+ System.out.println(); >+ System.out.println("Start measures:"); >+ startTime = System.currentTimeMillis(); >+ } >+ for (int i=0; i<MEASURES_COUNT; i++) { >+ runGc(); >+ BIG_PROJECT.getProject().close(null); >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ startMeasuring(); >+ BIG_PROJECT.getProject().open(null); >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ AbstractJavaModelTests.waitForManualRefresh(); >+ stopMeasuring(); >+ } >+ if (PRINT) { >+ System.out.println(" total time: "+((System.currentTimeMillis()-startTime)/1000.0)+"s"); >+ } >+ >+ // Commit >+ if (PRINT) { >+ System.out.println(); >+ System.out.println("Commit measures:"); >+ startTime = System.currentTimeMillis(); >+ } >+ commitMeasurements(); >+ assertPerformance(); >+ >+ // Finally reopen all Eclipse projects >+ if (PRINT) { >+ System.out.print("Reopen Eclipse projects..."); >+ startTime = System.currentTimeMillis(); >+ } >+ for (int i=0; i<length; i++) { >+ ALL_PROJECTS[i].getProject().open(null); >+ } >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ AbstractJavaModelTests.waitForAutoBuild(); >+ AbstractJavaModelTests.waitForManualRefresh(); >+ runGc(); >+ if (PRINT) { >+ System.out.println((System.currentTimeMillis()-startTime)+"ms"); >+ } >+} >+ > protected void resetCounters() { > // do nothing > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331632
:
184329
| 184344