File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/ThroughputController.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/ThroughputController.java | |||
Method name: void iterationStart(LoopIterationEvent)
|
Method name: void iterationStart(LoopIterationEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | synchronized (counterLock) {↵ | |||
2 | globalIteration++;↵ | 1 | iteration++;↵ | |
3 | runThisTime = decide(globalNumExecutions, globalIteration);↵ | 2 | runThisTime = decide(numExecutions, iteration);↵ | |
4 | if (runThisTime) {↵ | 3 | if (runThisTime) {↵ | |
5 | globalNumExecutions++;↵ | 4 | numExecutions++;↵ | |
6 | }↵ | 5 | ↵ | |
7 | } | 6 |
| |
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 the same method |
Number of node comparisons | 7 |
Number of mapped statements | 4 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | globalIteration++; |
| 7 | iteration++; | |||||||||||||||
4 | runThisTime = decide(globalNumExecutions, globalIteration); |
| 8 | runThisTime = decide(numExecutions, iteration); | |||||||||||||||
5 | if (runThisTime) | 9 | if (runThisTime) | ||||||||||||||||
6 | globalNumExecutions++; |
| 10 | numExecutions++; |
Row | Violation |
---|---|
1 | Expression globalIteration is a field being modified, and thus it cannot be parameterized |
2 | Expression iteration is a field being modified, and thus it cannot be parameterized |
3 | Expression globalIteration cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression iteration cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression globalNumExecutions is a field being modified, and thus it cannot be parameterized |
6 | Expression numExecutions is a field being modified, and thus it cannot be parameterized |