File tree Expand file tree Collapse file tree
components/src/ParcaContext
profile/src/ProfileSelector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {RpcError} from '@protobuf-ts/runtime-rpc';
1818import { QueryServiceClient } from '@parca/client' ;
1919import type { ColorConfig , NavigateFunction } from '@parca/utilities' ;
2020
21+ import { DateTimeRange } from '../DateTimeRangePicker/utils' ;
2122import { NoDataPrompt } from '../NoDataPrompt' ;
2223import Spinner , { SpinnerProps } from '../Spinner' ;
2324
@@ -45,6 +46,9 @@ export interface AdditionalMetricsGraphProps {
4546 } ;
4647 queryClient : QueryServiceClient ;
4748 suffix ?: '_a' | '_b' ;
49+ timeRange : DateTimeRange ;
50+ onTimeRangeChange : ( range : DateTimeRange ) => void ;
51+ commitTimeRange : ( ) => void ;
4852}
4953
5054interface Props {
Original file line number Diff line number Diff line change @@ -291,7 +291,14 @@ const ProfileSelector = ({
291291 return (
292292 < >
293293 < div className = "mb-2 flex flex-col" >
294- { additionalMetricsGraph ?.( { querySelection, queryClient, suffix} ) }
294+ { additionalMetricsGraph ?.( {
295+ querySelection,
296+ queryClient,
297+ suffix,
298+ timeRange : timeRangeSelection ,
299+ onTimeRangeChange : handleTimeRangeChange ,
300+ commitTimeRange : ( ) => setQueryExpression ( true ) ,
301+ } ) }
295302 < LabelsQueryProvider
296303 setMatchersString = { setMatchersString }
297304 runQuery = { setQueryExpression }
You can’t perform that action at this time.
0 commit comments