File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java | |||
Method name: void drawSample(int, SampleResult, Graphics)
|
Method name: void drawSample(int, SampleResult, Graphics)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | if (noLegendYet) {↵ | 1 | if (noLegendYet) {↵ | |
2 | gbc.gridx = 0;↵ | 2 | gbc.gridx = 0;↵ | |
3 | gbc.gridy = compCount++;↵ | 3 | gbc.gridy = compCount++;↵ | |
4 | gbc.anchor = GridBagConstraints.WEST;↵ | 4 | gbc.anchor = GridBagConstraints.WEST;↵ | |
5 | gbc.weightx = 1.0;↵ | 5 | gbc.weightx = 1.0;↵ | |
6 | gbc.insets = new Insets(0, 10, 0, 0);↵ | 6 | gbc.insets = new Insets(0, 10, 0, 0);↵ | |
7 | JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString());↵ | 7 | JLabel mainTimeLabel = new JLabel(oneSample.toString());↵ | |
8 | totalTimeLabel.setForeground(currColor);↵ | 8 | mainTimeLabel.setForeground(currColor);↵ | |
9 | gridBag.setConstraints(totalTimeLabel, gbc);↵ | 9 | gridBag.setConstraints(mainTimeLabel, gbc);↵ | |
10 | legendPanel.add(totalTimeLabel);↵ | 10 | legendPanel.add(mainTimeLabel);↵ | |
11 | } | 11 |
| |
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 | 100 |
Number of mapped statements | 10 |
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) | 23.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | if (noLegendYet) | 45 | if (noLegendYet) | ||||||||||||||
27 | gbc.gridx = 0; | 46 | gbc.gridx = 0; | ||||||||||||||
28 | gbc.gridy = compCount++; | 47 | gbc.gridy = compCount++; | ||||||||||||||
29 | gbc.anchor = GridBagConstraints.WEST; | 48 | gbc.anchor = GridBagConstraints.WEST; | ||||||||||||||
30 | gbc.weightx = 1.0; | 49 | gbc.weightx = 1.0; | ||||||||||||||
31 | gbc.insets = new Insets(0, 10, 0, 0); | 50 | gbc.insets = new Insets(0, 10, 0, 0); | ||||||||||||||
32 | JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString()); |
| 51 | JLabel mainTimeLabel = new JLabel(oneSample.toString()); | |||||||||||||
33 | totalTimeLabel.setForeground(currColor); |
| 52 | mainTimeLabel.setForeground(currColor); | |||||||||||||
34 | gridBag.setConstraints(totalTimeLabel, gbc); |
| 53 | gridBag.setConstraints(mainTimeLabel, gbc); | |||||||||||||
35 | legendPanel.add(totalTimeLabel); |
| 54 | legendPanel.add(mainTimeLabel); |
Row | Violation |
---|