|
@@ -42,6 +42,7 @@ import {
|
|
|
generateEventSlug,
|
|
|
} from 'sentry/utils/discover/urls';
|
|
|
import ViewReplayLink from 'sentry/utils/discover/viewReplayLink';
|
|
|
+import {generateProfileFlamechartRoute} from 'sentry/utils/profiling/routes';
|
|
|
import {decodeList} from 'sentry/utils/queryString';
|
|
|
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
|
import useProjects from 'sentry/utils/useProjects';
|
|
@@ -346,6 +347,25 @@ function TableView(props: TableViewProps) {
|
|
|
</ViewReplayLink>
|
|
|
);
|
|
|
}
|
|
|
+ } else if (columnKey === 'profile.id') {
|
|
|
+ const projectSlug = dataRow.project || dataRow['project.name'];
|
|
|
+ const profileId = dataRow['profile.id'];
|
|
|
+
|
|
|
+ if (projectSlug && profileId) {
|
|
|
+ const target = generateProfileFlamechartRoute({
|
|
|
+ orgSlug: organization.slug,
|
|
|
+ projectSlug: String(projectSlug),
|
|
|
+ profileId: String(profileId),
|
|
|
+ });
|
|
|
+
|
|
|
+ cell = (
|
|
|
+ <StyledTooltip title={t('View Profile')}>
|
|
|
+ <StyledLink data-test-id="view-profile" to={target}>
|
|
|
+ {cell}
|
|
|
+ </StyledLink>
|
|
|
+ </StyledTooltip>
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const topResultsIndicator =
|