Skip to content

Commit

Permalink
Assign fixed widths to the metrics in the Top columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Risha Mars committed Sep 12, 2018
1 parent 5325c85 commit 40f9614
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions web/app/js/components/TopEventTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { withContext } from './util/AppContext.jsx';
import { directionColumn, srcDstColumn } from './util/TapUtils.jsx';
import { formatLatencySec, numericSort } from './util/Utils.js';

const topMetricColWidth = "80px";
const topColumns = (resourceType, ResourceLink) => [
{
title: " ",
Expand All @@ -26,24 +27,28 @@ const topColumns = (resourceType, ResourceLink) => [
{
title: "Count",
dataIndex: "count",
width: topMetricColWidth,
defaultSortOrder: "descend",
sorter: (a, b) => numericSort(a.count, b.count),
},
{
title: "Best",
dataIndex: "best",
width: topMetricColWidth,
sorter: (a, b) => numericSort(a.best, b.best),
render: formatLatencySec
},
{
title: "Worst",
dataIndex: "worst",
width: topMetricColWidth,
sorter: (a, b) => numericSort(a.worst, b.worst),
render: formatLatencySec
},
{
title: "Last",
dataIndex: "last",
width: topMetricColWidth,
sorter: (a, b) => numericSort(a.last, b.last),
render: formatLatencySec
},
Expand Down
2 changes: 1 addition & 1 deletion web/app/js/components/TopModule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TopModule extends React.Component {
// max rows to keep in index. there are two indexes we keep:
// - un-ended tap results, pre-aggregation into the top counts
// - aggregated top rows
maxRowsToStore: 40,
maxRowsToStore: 50,
updateNeighbors: _.noop
}

Expand Down

0 comments on commit 40f9614

Please sign in to comment.