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

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


          + "() in code: " + code, searcher.getContext());

      final ExpressionTypeGoal goal = new ExpressionTypeGoal(searcher
          .getContext(), searcher.getResult());
      perfMonitor.execute("PerformanceTests.testCodeAssist" + "_"
          + fileName, new Operation() {
        public void run() throws Exception {
          if ("phpdocGoals".equals(pruner)) {
            typeInferenceEngine.evaluateTypeHeavy(goal,
                ENGINE_TIMEOUT);
          } else if ("heavyGoals".equals(pruner)) {
View Full Code Here


      String beforeFormat = document.get();

      final PhpFormatProcessorImpl formatter = new PhpFormatProcessorImpl();

      perfMonitor.execute("PerformanceTests.testFormatter" + "_"
          + fileName, new Operation() {
        public void run() throws Exception {
          formatter.formatDocument(document, 0, document.getLength());
        }
      }, 1, 10);
View Full Code Here

    assertNotNull(astRoot);
    // ASTNode selectedNode = NodeFinder.perform(astRoot, offset, 0);
    final int finalOffset = offset;
    perfMonitor.execute("PerformanceTests.testPhpElementConciliator" + "_"
        + fileName, new Operation() {
      public void run() throws Exception {
        NodeFinder.perform(astRoot, finalOffset, 0);
      }
    }, 1, 10);
  }
View Full Code Here

  public void testReferencingFiles(String fileName) throws Exception {
    IFile file = project.getFile(fileName);
    final ISourceModule sourceModule = (ISourceModule) DLTKCore
        .create(file);
    perfMonitor.execute("PerformanceTests.testReferencingfiles" + "_"
        + fileName, new Operation() {
      public void run() throws Exception {
        ReferenceTree tree = FileNetworkUtility
            .buildReferencingFilesTree(sourceModule, null);
        System.out.println(tree.toString());
      }
View Full Code Here

  public void testReferencedFiles(String fileName) throws Exception {
    IFile file = project.getFile(fileName);
    final ISourceModule sourceModule = (ISourceModule) DLTKCore
        .create(file);
    perfMonitor.execute("PerformanceTests.testReferencedfiles" + "_"
        + fileName, new Operation() {
      public void run() throws Exception {
        ReferenceTree tree = FileNetworkUtility
            .buildReferencedFilesTree(sourceModule, null);
        System.out.println(tree.toString());
      }
View Full Code Here

    public void runTest() throws Throwable {
      final IProject project = ResourcesPlugin.getWorkspace().getRoot()
          .getProject(map.get(PROJECT).toString());

      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testBuildProject", new Operation() {
        public void run() throws Exception {
          project.refreshLocal(IResource.DEPTH_INFINITE, null);
          PHPCoreTests.waitForIndexer();
        }
      }, 1, 10);
View Full Code Here

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findTypes("", MatchRule.PREFIX, 0, 0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchAllTypes", new Operation() {
        public void run() throws Exception {
          modelAccess.findTypes("", MatchRule.PREFIX, 0, 0, scope,
              null);
        }
      }, 10, 10);
View Full Code Here

      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findMethods("", MatchRule.PREFIX, Modifiers.AccGlobal,
          0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchAllFunctions", new Operation() {
        public void run() throws Exception {
          modelAccess.findMethods("", MatchRule.PREFIX,
              Modifiers.AccGlobal, 0, scope, null);
        }
      }, 10, 10);
View Full Code Here

      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findFields("", MatchRule.PREFIX, Modifiers.AccGlobal,
          0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchGlobalVariables", new Operation() {
        public void run() throws Exception {
          modelAccess.findFields("", MatchRule.PREFIX,
              Modifiers.AccGlobal, 0, scope, null);
        }
      }, 10, 10);
View Full Code Here

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findIncludes("", MatchRule.PREFIX, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchIncludeStatements", new Operation() {
        public void run() throws Exception {
          modelAccess.findIncludes("", MatchRule.PREFIX, scope, null);
        }
      }, 10, 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.