use of kg.apc.charting.AbstractGraphRow in project jmeter-plugins by undera.
the class ThreadsStateOverTimeGui method addThreadGroupRecord.
private void addThreadGroupRecord(String threadGroupName, long time, int numThreads, long duration) {
String labelAgg = "Overall Active Threads";
AbstractGraphRow row = model.get(threadGroupName);
AbstractGraphRow rowAgg = modelAggregate.get(labelAgg);
if (row == null) {
row = getNewRow(model, AbstractGraphRow.ROW_AVERAGES, threadGroupName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, true);
}
if (rowAgg == null) {
rowAgg = getNewRow(modelAggregate, AbstractGraphRow.ROW_SIMPLE, labelAgg, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, Color.RED, true);
}
row.add(time, numThreads);
// rebuild is a heavy process, avoided if possible
if (model.size() == 1) {
log.debug(row.toString());
log.debug(row.getElement(time).toString());
rowAgg.add(time, row.getElement(time).getValue());
} else {
rowAgg.add(time, getAllThreadCount(time));
// invalidate lastAggUpdateTime
if (time < lastAggUpdateTime) {
lastAggUpdateTime = time - duration;
}
if (time != lastAggUpdateTime) {
rebuildAggRow((GraphRowSimple) rowAgg, time, duration);
}
lastAggUpdateTime = time;
}
}
use of kg.apc.charting.AbstractGraphRow in project jmeter-plugins by undera.
the class AbstractGraphPanelVisualizerTest method testGetNewRow_9args.
/**
* Test of getNewRow method, of class AbstractGraphPanelVisualizer.
*/
@Test
public void testGetNewRow_9args() {
System.out.println("getNewRow");
ConcurrentSkipListMap<String, AbstractGraphRow> model = new ConcurrentSkipListMap<String, AbstractGraphRow>();
int rowType = 0;
String label = "";
int markerSize = 0;
boolean isBarRow = false;
boolean displayLabel = false;
boolean thickLines = false;
boolean showInLegend = false;
boolean canCompose = false;
AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl();
AbstractGraphRow result = instance.getNewRow(model, rowType, label, markerSize, isBarRow, displayLabel, thickLines, showInLegend, canCompose);
assertNotNull(result);
}
use of kg.apc.charting.AbstractGraphRow in project jmeter-plugins by undera.
the class ChartRowsTableTest method testAddRow.
/**
* Test of addRow method, of class ChartRowsTable.
*/
@Test
public void testAddRow() {
System.out.println("addRow");
AbstractGraphRow row = new GraphRowAverages();
ChartRowsTable instance = new ChartRowsTable(new JRowsSelectorPanel(new GraphPanel()));
instance.addRow(row);
}
use of kg.apc.charting.AbstractGraphRow in project jmeter-plugins by undera.
the class GraphPanelTest method setUp.
/**
*/
@Before
public void setUp() {
instance = new GraphPanel();
instance.getSettingsTab().add(new JSettingsPanel(new AbstractGraphPanelVisualizerImpl(), JSettingsPanel.GRADIENT_OPTION));
instance.getGraphObject().setRows(new ConcurrentSkipListMap<String, AbstractGraphRow>());
}
use of kg.apc.charting.AbstractGraphRow in project jmeter-plugins by undera.
the class GraphPanelTest method testAddRow.
/**
* Test of addRow method, of class GraphPanel.
*/
@Test
public void testAddRow() {
System.out.println("addRow");
AbstractGraphRow row = new GraphRowOverallAverages();
instance.addRow(row);
}
Aggregations