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 61053 Details for
Bug 174920
[model] closing a single project causes all variables and containers to be saved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Performance test case
b174920_FullSourceWorskpaceModelTests_on_top_v_741_v00.txt (text/plain), 2.23 KB, created by
Eric Jodet
on 2007-03-16 03:05:13 EDT
(
hide
)
Description:
Performance test case
Filename:
MIME Type:
Creator:
Eric Jodet
Created:
2007-03-16 03:05:13 EDT
Size:
2.23 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.21 >diff -u -r1.21 FullSourceWorkspaceModelTests.java >--- src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 14 Mar 2007 16:59:20 -0000 1.21 >+++ src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 16 Mar 2007 07:03:11 -0000 >@@ -804,6 +804,55 @@ > assertPerformance(); > } > >+public void testCloseProjects() throws JavaModelException { >+ // store current settings >+ long oldSnapInterval = ENV.getWorkspace().getDescription().getSnapshotInterval(); >+ boolean oldAutoBuildPolicy = ENV.isAutoBuilding(); >+ >+ // prevent snapshots and autobuilds from disturbing our measures >+ ENV.getWorkspace().getDescription().setSnapshotInterval(100000); >+ ENV.getWorkspace().getDescription().setAutoBuilding(false); >+ >+ try { >+ int length=ALL_PROJECTS.length; >+ // Warm-up >+ for (int i=0; i<WARMUP_COUNT; i++) { >+ for (int j=0; j<length; j++) { >+ ENV.closeProject(ALL_PROJECTS[j].getPath()); >+ } >+ for (int j=0; j<length; j++) { >+ ENV.openProject(ALL_PROJECTS[j].getPath()); >+ } >+ } >+ >+ // Measures >+ for (int i=0; i<MEASURES_COUNT; i++) { >+ AbstractJavaModelTests.waitUntilIndexesReady(); >+ // should not be autobuilding... >+ if (ENV.isAutoBuilding()) { >+ ENV.waitForAutoBuild(); >+ } >+ runGc(); >+ startMeasuring(); >+ for (int j=0; j<length; j++) { >+ ENV.closeProject(ALL_PROJECTS[j].getPath()); >+ } >+ stopMeasuring(); >+ for (int j=0; j<length; j++) { >+ ENV.openProject(ALL_PROJECTS[j].getPath()); >+ } >+ } >+ // Commit >+ commitMeasurements(); >+ assertPerformance(); >+ } >+ finally { >+ // restore previous settings >+ ENV.getWorkspace().getDescription().setSnapshotInterval(oldSnapInterval); >+ ENV.getWorkspace().getDescription().setAutoBuilding(oldAutoBuildPolicy); >+ } >+} >+ > 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 174920
:
59455
|
59569
| 61053 |
62232