Skip to content

Commit

Permalink
Remove execution time logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Nov 20, 2024
1 parent 199dff7 commit d86e28c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/main/java/org/codetracker/FileTrackerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ public void blame() throws Exception {
if (analysedCommits.contains(commitId))
continue;
analysedCommits.add(commitId);
long start = System.nanoTime();

Version currentVersion = gitRepository.getVersion(commitId);
String parentCommitId = gitRepository.getParentId(commitId);
Expand Down Expand Up @@ -340,10 +339,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
programElementMap.putAll(nestedProgramElementMap);
nestedProgramElementMap.clear();
}
long end = System.nanoTime();
long elapsedTime = end - start;
double elapsedTimeInSecond = (double) elapsedTime / 1_000_000_000;
System.out.println(commitId + "\t" + elapsedTimeInSecond);
continue;
}
else if (leftClass != null && (annotationChanged || modifiersChanged)) {
Expand Down Expand Up @@ -391,10 +386,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
}
Set<Class> leftSideClasses = new HashSet<>(classRefactored);
leftSideClasses.forEach(startClassChangeHistory::addFirst);
long end = System.nanoTime();
long elapsedTime = end - start;
double elapsedTimeInSecond = (double) elapsedTime / 1_000_000_000;
System.out.println(commitId + "\t" + elapsedTimeInSecond);
break;
}
}
Expand Down Expand Up @@ -425,10 +416,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
}
Set<Class> leftSideClasses = new HashSet<>(classRefactored);
leftSideClasses.forEach(startClassChangeHistory::addFirst);
long end = System.nanoTime();
long elapsedTime = end - start;
double elapsedTimeInSecond = (double) elapsedTime / 1_000_000_000;
System.out.println(commitId + "\t" + elapsedTimeInSecond);
break;
}
}
Expand Down Expand Up @@ -461,10 +448,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
}
Set<Class> leftSideClasses = new HashSet<>(classRefactored);
leftSideClasses.forEach(startClassChangeHistory::addFirst);
long end = System.nanoTime();
long elapsedTime = end - start;
double elapsedTimeInSecond = (double) elapsedTime / 1_000_000_000;
System.out.println(commitId + "\t" + elapsedTimeInSecond);
break;
}

Expand All @@ -473,10 +456,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
processAddedAttributes(umlModelPairAll.getRight(), umlModelDiffAll, currentVersion, parentVersion);
processAddedInnerClasses(umlModelPairAll.getRight(), umlModelDiffAll, currentVersion, parentVersion, startClass);
processAddedImportsAndClassComments(rightClass, parentVersion);
long end = System.nanoTime();
long elapsedTime = end - start;
double elapsedTimeInSecond = (double) elapsedTime / 1_000_000_000;
System.out.println(commitId + "\t" + elapsedTimeInSecond);
break;
}
}
Expand Down

0 comments on commit d86e28c

Please sign in to comment.