diff --git a/x-pack/plugins/profiling/public/components/flamegraph/flamegraph_tooltip.tsx b/x-pack/plugins/profiling/public/components/flamegraph/flamegraph_tooltip.tsx index ce5835f57e7a7..ae37ebf65c9f0 100644 --- a/x-pack/plugins/profiling/public/components/flamegraph/flamegraph_tooltip.tsx +++ b/x-pack/plugins/profiling/public/components/flamegraph/flamegraph_tooltip.tsx @@ -38,7 +38,6 @@ interface Props { comparisonCountExclusive?: number; comparisonTotalSamples?: number; comparisonTotalSeconds?: number; - samplingRate?: number; onShowMoreClick?: () => void; } @@ -55,7 +54,6 @@ export function FlameGraphTooltip({ comparisonCountExclusive, comparisonTotalSamples, comparisonTotalSeconds, - samplingRate, onShowMoreClick, }: Props) { const theme = useEuiTheme(); @@ -80,8 +78,6 @@ export function FlameGraphTooltip({ }) : undefined; - const prependString = samplingRate === 1.0 ? ' ' : '~'; - return ( @@ -104,7 +100,6 @@ export function FlameGraphTooltip({ formatValue={asPercentage} showDifference formatDifferenceAsPercentage - prependValue={prependString} /> )} @@ -138,7 +132,6 @@ export function FlameGraphTooltip({ } showDifference formatDifferenceAsPercentage={false} - prependValue={prependString} /> {onShowMoreClick && ( <> diff --git a/x-pack/plugins/profiling/public/components/flamegraph/index.tsx b/x-pack/plugins/profiling/public/components/flamegraph/index.tsx index 39bbc47ac382c..5f4bc8cfab9cc 100644 --- a/x-pack/plugins/profiling/public/components/flamegraph/index.tsx +++ b/x-pack/plugins/profiling/public/components/flamegraph/index.tsx @@ -194,7 +194,6 @@ export function FlameGraph({ frame={selected} totalSeconds={primaryFlamegraph?.TotalSeconds ?? 0} totalSamples={totalSamples} - samplingRate={primaryFlamegraph?.SamplingRate ?? 1.0} /> )} diff --git a/x-pack/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx b/x-pack/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx index 43e34b6f6901e..cf451ab8448e5 100644 --- a/x-pack/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx +++ b/x-pack/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx @@ -20,13 +20,11 @@ export function getImpactRows({ countExclusive, totalSamples, totalSeconds, - isApproximate = false, }: { countInclusive: number; countExclusive: number; totalSamples: number; totalSeconds: number; - isApproximate: boolean; }) { const { selfCPU, totalCPU } = calculateImpactEstimates({ countInclusive, diff --git a/x-pack/plugins/profiling/public/components/frame_information_window/index.tsx b/x-pack/plugins/profiling/public/components/frame_information_window/index.tsx index 0d7e35a93d8c0..9a71dcf5992d7 100644 --- a/x-pack/plugins/profiling/public/components/frame_information_window/index.tsx +++ b/x-pack/plugins/profiling/public/components/frame_information_window/index.tsx @@ -34,10 +34,9 @@ export interface Props { }; totalSamples: number; totalSeconds: number; - samplingRate: number; } -export function FrameInformationWindow({ frame, totalSamples, totalSeconds, samplingRate }: Props) { +export function FrameInformationWindow({ frame, totalSamples, totalSeconds }: Props) { const aiAssistant = useObservabilityAIAssistant(); const promptMessages = useMemo(() => { @@ -155,16 +154,11 @@ export function FrameInformationWindow({ frame, totalSamples, totalSeconds, samp sourceLine, }); - // Are the results sampled? If yes, prepend a '~'. - const isApproximate = (samplingRate ?? 1.0) === 1.0; - const prependString = isApproximate ? undefined : '~'; - const impactRows = getImpactRows({ countInclusive, countExclusive, totalSamples, totalSeconds, - isApproximate, }); return ( @@ -202,7 +196,7 @@ export function FrameInformationWindow({ frame, totalSamples, totalSeconds, samp - + diff --git a/x-pack/plugins/profiling/public/components/topn_functions/index.tsx b/x-pack/plugins/profiling/public/components/topn_functions/index.tsx index d3528b522443b..a559b85c84a4d 100644 --- a/x-pack/plugins/profiling/public/components/topn_functions/index.tsx +++ b/x-pack/plugins/profiling/public/components/topn_functions/index.tsx @@ -331,7 +331,6 @@ export const TopNFunctionsGrid = forwardRef( }} totalSeconds={totalSeconds} totalSamples={totalCount} - samplingRate={topNFunctions?.SamplingRate ?? 1.0} /> )}