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: 6 | Number of AST nodes: 6 | |||
1 | if (attr.equals(Constants.MEMORY_FREE)) {↵ | 1 | if (attr.equals(Constants.M↵ | |
2 | memory.setFree↵ | 2 | AXSPARETHREADS)) {↵ | |
3 | (parseLong(attributes.getValue(idx)));↵ | 3 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx)));↵ | |
4 | } else if (attr.equals(Constants.MEMORY_TOTAL)) {↵ | 4 | } else if (attr.equals(Constants.↵ | |
5 | memory.setTotal↵ | 5 | CURRENTTHREADCOUNT)) {↵ | |
6 | (parseLong(attributes.getValue(idx)));↵ | 6 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));↵ | |
7 | } else if (attr.equals(Constants.MEMORY_MAX)) {↵ | 7 | } else if (attr.equals(Constants.↵ | |
8 | memory.setMax↵ | 8 | CURRENTBUSYTHREADS)) {↵ | |
9 | (parseLong(attributes.getValue(idx)));↵ | 9 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx)));↵ | |
10 | } | 10 |
| |
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) | 1.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | if (attr.equals(Constants.MEMORY_FREE)) |
| 45 | if (attr.equals(Constants.MAXSPARETHREADS)) | ||||||||||
17 | memory.setFree(parseLong(attributes.getValue(idx))); | | ||||||||||||
| 46 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx))); | ||||||||||||
18 | else if (attr.equals(Constants.MEMORY_TOTAL)) |
| 47 | else if (attr.equals(Constants.CURRENTTHREADCOUNT)) | ||||||||||
19 | memory.setTotal(parseLong(attributes.getValue(idx))); | | ||||||||||||
| 48 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx))); | ||||||||||||
20 | else if (attr.equals(Constants.MEMORY_MAX)) |
| 49 | else if (attr.equals(Constants.CURRENTBUSYTHREADS)) | ||||||||||
21 | memory.setMax(parseLong(attributes.getValue(idx))); | | ||||||||||||
| 50 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx))); |
Row | Violation |
---|