Examples of CallDictionary


Examples of com.onpositive.instrumentation.tasks.CallDictionary

    // if (true){
    // return null;
    // }
    if (!toInstrument.isEmpty()) {
      try {
        CallDictionary ds = DictionaryManager
            .getCallDictionary(project);

        Instrumentor t = new Instrumentor(ds, create);
        for (IFile f : toInstrument) {
          try {
            t.instrumentClass1(f);
          } catch (IOException e) {
            Activator.getDefault().log(e);
            throw new CoreException(
                new Status(IStatus.ERROR, Activator.PLUGIN_ID,
                    IResourceStatus.BUILD_FAILED, e
                        .getMessage(), e));
          }
        }
        ds.commit();
       
      } catch (IOException e) {
        StartProfilingAction.rebuild(create);
        throw new CoreException(new Status(IStatus.ERROR,
            Activator.PLUGIN_ID, IResourceStatus.BUILD_FAILED, e
View Full Code Here

Examples of com.onpositive.instrumentation.tasks.CallDictionary

  public static CallDictionary getCallDictionary(IProject project)
      throws IOException {
    IPath workingLocation = project.getWorkingLocation(Activator.PLUGIN_ID);
    File fl = workingLocation.toFile();
    File dictionaryFile = new File(fl, "profiler.dict");
    CallDictionary callDictionary = cashedDictionaries.get(dictionaryFile);
    if (callDictionary == null) {
      callDictionary = new StoredCallDictionary(project,dictionaryFile);
      cashedDictionaries.put(dictionaryFile, callDictionary);
     
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.