Browse Source

chore(functions): Rename suspect functions to slowest functions (#54573)

For clarity, renaming suspect functions to slowest functions.
Tony Xiao 1 year ago
parent
commit
88e8dc6444

+ 1 - 1
static/app/components/profiling/suspectFunctions/suspectFunctionsTable.tsx

@@ -79,7 +79,7 @@ export function SuspectFunctionsTable({
     <Fragment>
       <TableHeader>
         <CompactSelect
-          triggerProps={{prefix: t('Suspect Functions'), size: 'xs'}}
+          triggerProps={{prefix: t('Slowest Functions'), size: 'xs'}}
           value={functionType}
           options={[
             {

+ 1 - 1
static/app/views/profiling/landing/landingWidgetSelector.tsx

@@ -104,7 +104,7 @@ export function LandingWidgetSelector({
 
 const WIDGET_OPTIONS: SelectOption<WidgetOption>[] = [
   {
-    label: t('Suspect Functions'),
+    label: t('Slowest Functions'),
     value: 'slowest functions' as const,
   },
   {

+ 2 - 2
static/app/views/profiling/landing/slowestFunctionsWidget.tsx

@@ -113,8 +113,8 @@ export function SlowestFunctionsWidget({
   return (
     <WidgetContainer height={widgetHeight}>
       <HeaderContainer>
-        {header ?? <HeaderTitleLegend>{t('Suspect Functions')}</HeaderTitleLegend>}
-        <Subtitle>{t('Slowest functions by total time spent.')}</Subtitle>
+        {header ?? <HeaderTitleLegend>{t('Slowest Functions')}</HeaderTitleLegend>}
+        <Subtitle>{t('Slowest functions by total self time spent.')}</Subtitle>
         <StyledPagination
           pageLinks={functionsQuery.getResponseHeader?.('Link') ?? null}
           size="xs"