File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/Summariser.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/Summariser.java | |||
Method name: void testEnded(String)
|
Method name: void sampleOccurred(SampleEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (total.total.getNumSamples() != 0) {// Only print delta if different from total↵ | 1 | if (myTotal != null && myDelta != null &&myTotal.getNumSamples() != myDelta.getNumSamples()) {↵ | |
2 | str = format(name, total.delta, "+");↵ | 2 | str = format(myName, myTotal, "=");↵ | |
3 | if (TOLOG) {↵ | 3 | if (TOLOG) {↵ | |
4 | log.info(str);↵ | 4 | log.info(str);↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (TOOUT) {↵ | 6 | if (TOOUT) {↵ | |
7 | System.out.println(str);↵ | 7 | System.out.println(str);↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 15 |
Number of mapped statements | 5 |
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) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | str = format(name, total.delta, "+"); |
| 23 | str = format(myName, myTotal, "="); | ||||||||||||||||
12 | if (TOLOG) | 24 | if (TOLOG) | |||||||||||||||||
13 | log.info(str); | 25 | log.info(str); | |||||||||||||||||
14 | if (TOOUT) | 26 | if (TOOUT) | |||||||||||||||||
15 | System.out.println(str); | 27 | System.out.println(str); |
Row | Violation |
---|