diff --git a/ui/packages/shared/profile/src/MetricsGraph/MetricsTooltip/index.tsx b/ui/packages/shared/profile/src/MetricsGraph/MetricsTooltip/index.tsx index 2d0c86ab1ad..04209196e51 100644 --- a/ui/packages/shared/profile/src/MetricsGraph/MetricsTooltip/index.tsx +++ b/ui/packages/shared/profile/src/MetricsGraph/MetricsTooltip/index.tsx @@ -122,9 +122,6 @@ const MetricsTooltip = ({ Value {valueFormatter(highlighted.valuePerSecond, sampleUnit, 5)}{' '} - {highlighted.valuePercentage > 0 && ( - <>({valueFormatter(highlighted.valuePercentage, 'percentage', 2)}) - )} {delta && ( diff --git a/ui/packages/shared/utilities/src/index.ts b/ui/packages/shared/utilities/src/index.ts index 2273fedf710..fca54f41229 100644 --- a/ui/packages/shared/utilities/src/index.ts +++ b/ui/packages/shared/utilities/src/index.ts @@ -60,15 +60,10 @@ const unitsInCount = { exa: {divisor: 1e18, symbol: 'E'}, }; -const percentage = { - percentage: {divisor: 0.01, symbol: '%'}, // dividing by 0.01 is like multiplying by 100. -}; - const knownValueFormatters = { bytes: unitsInBytes, nanoseconds: unitsInTime, count: unitsInCount, - percentage, }; export const valueFormatter = (num: number, unit: string, digits: number): string => {