File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/SamplingStatCalculator.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/RunningSample.java | |||
Method name: String toString()
|
Method name: String toString()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | StringBuffer mySB = new StringBuffer();↵ | 1 | StringBuffer mySB = new StringBuffer();↵ | |
2 | mySB.append("Samples: " + this.getCount() + " ");↵ | 2 | mySB.append("Samples: " + this.getNumSamples() + " ");↵ | |
3 | mySB.append("Avg: " + this.getMean() + " ");↵ | 3 | mySB.append("Avg: " + this.getAverage() + " ");↵ | |
4 | mySB.append("Min: " + this.getMin() + " ");↵ | 4 | mySB.append("Min: " + this.getMin() + " ");↵ | |
5 | mySB.append("Max: " + this.getMax() + " ");↵ | 5 | mySB.append("Max: " + this.getMax() + " ");↵ | |
6 | mySB.append("Error Rate: " + this.getErrorPercentage() + " ");↵ | 6 | mySB.append("Error Rate: " + this.getErrorPercentageString() + " ");↵ | |
7 | mySB.append("Sample Rate: " + this.getRate());↵ | 7 | mySB.append("Sample Rate: " + this.getRateString());↵ | |
8 | return (mySB.toString()); | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 64 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer mySB = new StringBuffer(); | 1 | StringBuffer mySB = new StringBuffer(); | ||||||||||||||||
2 | mySB.append("Samples: " + this.getCount() + " "); |
| 2 | mySB.append("Samples: " + this.getNumSamples() + " "); | |||||||||||||||
3 | mySB.append("Avg: " + this.getMean() + " "); |
| 3 | mySB.append("Avg: " + this.getAverage() + " "); | |||||||||||||||
4 | mySB.append("Min: " + this.getMin() + " "); | 4 | mySB.append("Min: " + this.getMin() + " "); | ||||||||||||||||
5 | mySB.append("Max: " + this.getMax() + " "); | 5 | mySB.append("Max: " + this.getMax() + " "); | ||||||||||||||||
6 | mySB.append("Error Rate: " + this.getErrorPercentage() + " "); |
| 6 | mySB.append("Error Rate: " + this.getErrorPercentageString() + " "); | |||||||||||||||
7 | mySB.append("Sample Rate: " + this.getRate()); |
| 7 | mySB.append("Sample Rate: " + this.getRateString()); | |||||||||||||||
8 | return (mySB.toString()); | 8 | return (mySB.toString()); |
Row | Violation |
---|---|
1 | Type int of variable this.getCount() does not match with type long of variable this.getNumSamples() |
2 | Type double of variable this.getMean() does not match with type long of variable this.getAverage() |
3 | Expression this.getErrorPercentageString() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type double of variable this.getErrorPercentage() does not match with type java.lang.String of variable this.getErrorPercentageString() |
5 | Expression this.getRateString() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type double of variable this.getRate() does not match with type java.lang.String of variable this.getRateString() |