use of com.insightfullogic.honest_profiler.core.aggregation.result.diff.DiffEntry in project honest-profiler by jvm-profiling-tools.
the class FlatDiffViewController method initializeTable.
/**
* Initializes the {@link TableView} which displays the {@link FlatDiff} {@link Aggregation}.
*/
@Override
protected void initializeTable() {
method.setCellValueFactory(data -> new ReadOnlyStringWrapper(data.getValue().getKey()));
method.setCellFactory(col -> new MethodNameTableCell<DiffEntry>());
// The column configuration methods should (for now) be called in the same order as the columns are declared in
// the FXML.
// The only reason is the column view context menu, which collects its menu items in the order of these
// declarations. If the order is out of sync, the column view context menu will not have its items in the
// correct order.
// This will probably, eventually, be remedied by reordering but for now this comment will have to do.
cfgPctCol(baseSelfCntPct, "baseSelfCntPct", baseCtx(), getText(COLUMN_SELF_CNT_PCT));
cfgPctCol(newSelfCntPct, "newSelfCntPct", newCtx(), getText(COLUMN_SELF_CNT_PCT));
cfgPctDiffCol(selfCntPctDiff, "selfCntPctDiff", getText(COLUMN_SELF_CNT_PCT_DIFF));
cfgPctCol(baseTotalCntPct, "baseTotalCntPct", baseCtx(), getText(COLUMN_TOTAL_CNT_PCT));
cfgPctCol(newTotalCntPct, "newTotalCntPct", newCtx(), getText(COLUMN_TOTAL_CNT_PCT));
cfgPctDiffCol(totalCntPctDiff, "totalCntPctDiff", getText(COLUMN_TOTAL_CNT_PCT_DIFF));
cfgNrCol(baseSelfCnt, "baseSelfCnt", baseCtx(), getText(COLUMN_SELF_CNT));
cfgNrCol(newSelfCnt, "newSelfCnt", newCtx(), getText(COLUMN_SELF_CNT));
cfgNrDiffCol(selfCntDiff, "selfCntDiff", getText(COLUMN_SELF_CNT_DIFF));
cfgNrCol(baseTotalCnt, "baseTotalCnt", baseCtx(), getText(COLUMN_TOTAL_CNT));
cfgNrCol(newTotalCnt, "newTotalCnt", newCtx(), getText(COLUMN_TOTAL_CNT));
cfgNrDiffCol(totalCntDiff, "totalCntDiff", getText(COLUMN_TOTAL_CNT_DIFF));
cfgPctCol(baseSelfTimePct, "baseSelfTimePct", baseCtx(), getText(COLUMN_SELF_TIME_PCT));
cfgPctCol(newSelfTimePct, "newSelfTimePct", newCtx(), getText(COLUMN_SELF_TIME_PCT));
cfgPctDiffCol(selfTimePctDiff, "selfTimePctDiff", getText(COLUMN_SELF_TIME_PCT_DIFF));
cfgPctCol(baseTotalTimePct, "baseTotalTimePct", baseCtx(), getText(COLUMN_TOTAL_TIME_PCT));
cfgPctCol(newTotalTimePct, "newTotalTimePct", newCtx(), getText(COLUMN_TOTAL_TIME_PCT));
cfgPctDiffCol(totalTimePctDiff, "totalTimePctDiff", getText(COLUMN_TOTAL_TIME_PCT_DIFF));
cfgTimeCol(baseSelfTime, "baseSelfTime", baseCtx(), getText(COLUMN_SELF_TIME));
cfgTimeCol(newSelfTime, "newSelfTime", newCtx(), getText(COLUMN_SELF_TIME));
cfgTimeDiffCol(selfTimeDiff, "selfTimeDiff", getText(COLUMN_SELF_TIME_DIFF));
cfgTimeCol(baseTotalTime, "baseTotalTime", baseCtx(), getText(COLUMN_TOTAL_TIME));
cfgTimeCol(newTotalTime, "newTotalTime", newCtx(), getText(COLUMN_TOTAL_TIME));
cfgTimeDiffCol(totalTimeDiff, "totalTimeDiff", getText(COLUMN_TOTAL_TIME_DIFF));
}
use of com.insightfullogic.honest_profiler.core.aggregation.result.diff.DiffEntry in project honest-profiler by jvm-profiling-tools.
the class FlatDiffViewTest method testFlatDiffViewScenario.
// Actual Test Method
@Test
public void testFlatDiffViewScenario() {
FxRobot robot = new FxRobot();
waitUntil(asyncFx(() -> getMainStage().setMaximized(true)));
newProfileTab(robot, app(), 0, "Base : " + baseScenario.getName(), baseScenario, LOG);
newProfileTab(robot, app(), 1, "New : " + newScenario.getName(), newScenario, LOG);
selectTab(robot, 1);
selectCtxMenu(robot, "#compareButton", 0, "Base : " + baseScenario.getName());
selectTab(robot, 2);
selectView(robot, FLAT);
selectFrameGrouping(robot, frameGrouping, "#flat");
TableView<DiffEntry> tableView = getFlatDiffTableView(robot);
newScenario.checkFlatDiffAggregation(baseScenario, new FlatDiffTableViewCheckAdapter(BY_ID, frameGrouping, tableView));
}
Aggregations