Lines 24-29
Link Here
|
24 |
import java.util.Map; |
24 |
import java.util.Map; |
25 |
import java.util.StringTokenizer; |
25 |
import java.util.StringTokenizer; |
26 |
|
26 |
|
|
|
27 |
import org.eclipse.test.internal.performance.InternalDimensions; |
27 |
import org.eclipse.test.internal.performance.PerformanceTestPlugin; |
28 |
import org.eclipse.test.internal.performance.PerformanceTestPlugin; |
28 |
import org.eclipse.test.internal.performance.db.DB; |
29 |
import org.eclipse.test.internal.performance.db.DB; |
29 |
|
30 |
|
Lines 688-697
Link Here
|
688 |
internalQueryAllComments(); |
689 |
internalQueryAllComments(); |
689 |
ResultSet result = null; |
690 |
ResultSet result = null; |
690 |
try { |
691 |
try { |
691 |
String currentBuildName = currentBuild.getName(); |
692 |
String cBuildName = currentBuild.getName(); |
692 |
String baselineBuildName = baselineBuild.getName(); |
693 |
String currentBuildName = cBuildName; |
693 |
result = fSQL.queryScenarioSummaries(scenarioResults.getId(), config, currentBuild.getName(), baselineBuild.getName()); |
694 |
String bBuildName = baselineBuild.getName(); |
|
|
695 |
String baselineBuildName = bBuildName; |
696 |
int scenarioID = scenarioResults.getId(); |
697 |
// First try to get summaries of elapsed process dimension |
698 |
result = fSQL.queryScenarioSummaries(scenarioID, config, cBuildName, bBuildName, InternalDimensions.ELAPSED_PROCESS.getId()); |
699 |
boolean hasResults = false; |
694 |
while (result.next()) { |
700 |
while (result.next()) { |
|
|
701 |
hasResults = true; |
695 |
String variation = result.getString(1); |
702 |
String variation = result.getString(1); |
696 |
int summaryKind = result.getShort(2); |
703 |
int summaryKind = result.getShort(2); |
697 |
int comment_id = result.getInt(3); |
704 |
int comment_id = result.getInt(3); |
Lines 704-710
Link Here
|
704 |
} else if (buildName.equals(baselineBuildName)) { |
711 |
} else if (buildName.equals(baselineBuildName)) { |
705 |
buildResults = baselineBuild; |
712 |
buildResults = baselineBuild; |
706 |
} |
713 |
} |
707 |
buildResults.setSummary(summaryKind, COMMENTS[comment_id]); |
714 |
if (buildResults != null) { |
|
|
715 |
buildResults.setSummary(summaryKind, COMMENTS[comment_id]); |
716 |
} |
717 |
} |
718 |
if (!hasResults) { |
719 |
// Scenario is not a fingerprint, try to get comments |
720 |
result = fSQL.queryScenarioSummaries(scenarioID, config, cBuildName, bBuildName, 0); |
721 |
while (result.next()) { |
722 |
String variation = result.getString(1); |
723 |
int comment_id = result.getInt(3); |
724 |
StringTokenizer tokenizer = new StringTokenizer(variation, "=|"); //$NON-NLS-1$ |
725 |
tokenizer.nextToken(); // 'build' |
726 |
String buildName = tokenizer.nextToken(); // 'I20070615-1200' |
727 |
BuildResults buildResults = null; |
728 |
if (buildName.equals(currentBuildName)) { |
729 |
buildResults = currentBuild; |
730 |
} else if (buildName.equals(baselineBuildName)) { |
731 |
buildResults = baselineBuild; |
732 |
} |
733 |
if (buildResults != null) { |
734 |
buildResults.setComment(COMMENTS[comment_id]); |
735 |
} |
736 |
} |
708 |
} |
737 |
} |
709 |
} catch (SQLException e) { |
738 |
} catch (SQLException e) { |
710 |
PerformanceTestPlugin.log(e); |
739 |
PerformanceTestPlugin.log(e); |