Package org.eclipse.php.core.tests.performance.PerformanceMonitor

Examples of org.eclipse.php.core.tests.performance.PerformanceMonitor.Operation


      Assert.assertNotNull(exceptionType);
      Assert.assertEquals(exceptionType.length, 1);

      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSuperTypeHierarchy", new Operation() {
        public void run() throws Exception {
          exceptionType[0].newSupertypeHierarchy(null);
        }
      }, 10, 10);
    }
View Full Code Here


      Assert.assertNotNull(exceptionType);
      Assert.assertEquals(exceptionType.length, 1);

      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testTypeHierarchy", new Operation() {
        public void run() throws Exception {
          exceptionType[0].newTypeHierarchy(null);
        }
      }, 10, 10);
    }
View Full Code Here

            }

            protected void runTest() throws Throwable {
              perfMonitor.execute(
                  "PerformanceTests.testSelectionEngine"
                      + "_" + fileName, new Operation() {
                    public void run() throws Exception {
                      IModelElement[] elements = getSelection(pdttFile
                          .getFile());
                    }
                  }, 1, 10);
View Full Code Here

            }

            protected void runTest() throws Throwable {
              perfMonitor.execute(
                  "PerformanceTests.testCodeAssist" + "_"
                      + fileName, new Operation() {
                    public void run() throws Exception {
                      CompletionProposal[] proposals = getProposals(pdttFile
                          .getFile());
                    }
                  }, 1, 10);
View Full Code Here

            .getOccurrencesFinder(type);
        if (finder != null) {
          if (finder.initialize(astRoot, selectedNode) == null) {
            perfMonitor.execute(
                "PerformanceTests.testMarkOccurrence" + "_"
                    + fileName, new Operation() {
                  public void run() throws Exception {
                    finder.getOccurrences();
                  }
                }, 1, 10);
          }
View Full Code Here

    project.refreshLocal(IResource.DEPTH_ONE, null);
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);

    PHPCoreTests.waitForIndexer();
    perfMonitor.execute("PerformanceTests.testProgramParser" + "_"
        + fileName, new Operation() {
      public void run() throws Exception {
        Util.createProgramFromSource(testFile);
      }
    }, 1, 10);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.core.tests.performance.PerformanceMonitor.Operation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.