File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java | |||
Method name: void startElement(String, String, String, Attributes)
|
Method name: void startElement(String, String, String, Attributes)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (attr.equals(Constants.CURRENTTHREADCOUNT)) {↵ | 1 | if (attr.equals(Constants.↵ | |
2 | threadinfo.setCurrentThreadCount↵ | 2 | MEMORY_TOTAL)) {↵ | |
3 | (parseInt(attributes.getValue(idx)));↵ | 3 | memory.setTotal(parseLong(attributes.getValue(idx)));↵ | |
4 | } else if (attr.equals(Constants.CURRENTBUSYTHREADS)) {↵ | 4 | } else if (attr.equals(Constants.↵ | |
5 | threadinfo.setCurrentThreadsBusy↵ | 5 | MEMORY_MAX)) {↵ | |
6 | (parseInt(attributes.getValue(idx)));↵ | 6 | memory.setMax(parseLong(attributes.getValue(idx)));↵ | |
7 | } | 7 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | else if (attr.equals(Constants.CURRENTTHREADCOUNT)) |
| 20 | else if (attr.equals(Constants.MEMORY_MAX)) | ||||||||||
48 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx))); | | ||||||||||||
49 | else if (attr.equals(Constants.CURRENTBUSYTHREADS)) |
| 18 | else if (attr.equals(Constants.MEMORY_TOTAL)) | ||||||||||
| 19 | memory.setTotal(parseLong(attributes.getValue(idx))); | ||||||||||||
50 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx))); | | ||||||||||||
| 21 | memory.setMax(parseLong(attributes.getValue(idx))); |
Row | Violation |
---|