File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorGraph.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorGraph.java | |||
Method name: void drawSample(int, MonitorModel, Graphics, MonitorModel)
|
Method name: void drawSample(int, MonitorModel, Graphics, MonitorModel)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | if (MEM) {↵ | 1 | if (HEALTH) {↵ | |
2 | int mmy = (int) (height - (height * (model.getMemload() / 100.0)));↵ | 2 | int hly = (int) (height - (height * (model.getHealth() / 3.0)));↵ | |
3 | int lastmmy = (int) (height - (height * (last.getMemload() / 100.0)));↵ | 3 | int lasty = (int) (height - (height * (last.getHealth() / 3.0)));↵ | |
4 | g.setColor(Color.orange);↵ | 4 | g.setColor(Color.green);↵ | |
5 | g.drawLine(lastx, lastmmy, xaxis, mmy);↵ | 5 | g.drawLine(lastx, lasty, xaxis, hly);↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (THREAD) {↵ | 7 | if (LOAD) {↵ | |
8 | int thy = (int) (height - (height * (model.getThreadload() / 100.0)));↵ | 8 | int ldy = (int) (height - (height * (model.getLoad() / 100.0)));↵ | |
9 | int lastthy = (int) (height - (height * (last.getThreadload() / 100.0)));↵ | 9 | int lastldy = (int) (height - (height * (last.getLoad() / 100.0)));↵ | |
10 | g.setColor(Color.red);↵ | 10 | g.setColor(Color.blue);↵ | |
11 | g.drawLine(lastx, lastthy, xaxis, thy);↵ | 11 | g.drawLine(lastx, lastldy, xaxis, ldy);↵ | |
12 | } | 12 |
| |
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 76 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 16.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | if (MEM) |
| 26 | if (LOAD) | ||||||||||||||||
32 | int mmy = (int)(height - (height * (model.getMemload() / 100.0))); |
| 27 | int ldy = (int)(height - (height * (model.getLoad() / 100.0))); | ||||||||||||||||
33 | int lastmmy = (int)(height - (height * (last.getMemload() / 100.0))); |
| 28 | int lastldy = (int)(height - (height * (last.getLoad() / 100.0))); | ||||||||||||||||
34 | g.setColor(Color.orange); |
| 29 | g.setColor(Color.blue); | ||||||||||||||||
35 | g.drawLine(lastx, lastmmy, xaxis, mmy); |
| 30 | g.drawLine(lastx, lastldy, xaxis, ldy); | ||||||||||||||||
36 | if (THREAD) |
| 21 | if (HEALTH) | ||||||||||||||||
37 | int thy = (int)(height - (height * (model.getThreadload() / 100.0))); |
| 22 | int hly = (int)(height - (height * (model.getHealth() / 3.0))); | ||||||||||||||||
38 | int lastthy = (int)(height - (height * (last.getThreadload() / 100.0))); |
| 23 | int lasty = (int)(height - (height * (last.getHealth() / 3.0))); | ||||||||||||||||
| 24 | g.setColor(Color.green); | ||||||||||||||||||
39 | g.setColor(Color.red); | | ||||||||||||||||||
40 | g.drawLine(lastx, lastthy, xaxis, thy); |
| 25 | g.drawLine(lastx, lasty, xaxis, hly); |
Row | Violation |
---|