Skip to content

Commit

Permalink
Delete execution time printing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Oct 31, 2024
1 parent bc3b71e commit f38cd19
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 @@ -237,7 +237,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 @@ -335,10 +334,6 @@ else if (leftSuperclass == null && rightSuperclass != null) {
UMLClassBaseDiff lightweightInnerClassDiff = lightweightClassDiff(pair.getLeft().getUmlClass(), pair.getRight().getUmlClass());
processImportsAndClassComments(lightweightInnerClassDiff, pair.getRight(), currentVersion, parentVersion, Collections.emptyList());
}
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 @@ -386,10 +381,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 @@ -420,10 +411,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 @@ -456,10 +443,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 @@ -468,10 +451,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 f38cd19

Please sign in to comment.