diff --git a/ui/packages/shared/components/src/ParcaContext/index.tsx b/ui/packages/shared/components/src/ParcaContext/index.tsx index bf36b08be0a..f4673f1b448 100644 --- a/ui/packages/shared/components/src/ParcaContext/index.tsx +++ b/ui/packages/shared/components/src/ParcaContext/index.tsx @@ -69,6 +69,7 @@ interface Props { additionalFlamegraphColorProfiles?: Record; timezone?: string; preferencesModal?: boolean; + checkDebuginfoStatusHandler?: (buildId: string) => void; } export const defaultValue: Props = { diff --git a/ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx b/ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx index ecb4f12f9ff..4b911f0a08d 100644 --- a/ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx +++ b/ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx @@ -59,7 +59,7 @@ const ContextMenu = ({ hideBinary, }: ContextMenuProps): JSX.Element => { const {isDarkMode} = useParcaContext(); - const {enableSourcesView} = useParcaContext(); + const {enableSourcesView, checkDebuginfoStatusHandler} = useParcaContext(); const [isGraphTooltipDocked, setIsDocked] = useUserPreference( USER_PREFERENCES.GRAPH_METAINFO_DOCKED.key ); @@ -222,6 +222,23 @@ const ContextMenu = ({ ))} + {checkDebuginfoStatusHandler !== undefined ? ( + checkDebuginfoStatusHandler(mappingBuildID as string)} + disabled={!isMappingBuildIDAvailable} + > +
+ +
+ Check debuginfo status{' '} + + + +
+
+
+ ) : null}