

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 打开 SageMaker Profiler 用户界面应用程序
<a name="profiler-access-smprofiler-ui"></a>

您可以通过以下选项访问 SageMaker Profiler 用户界面应用程序。

**Topics**
+ [选项 1：从域名详情页面启动 SageMaker Profiler 用户界面](#profiler-access-smprofiler-ui-console-smdomain)
+ [选项 2：从 AI 控制台的 SageMaker Profiler 登录页面启动 SageMaker Profiler 用户界面应用程序 SageMaker](#profiler-access-smprofiler-ui-console-profiler-landing-page)
+ [选项 3：使用 SageMaker AI Python SDK 中的应用程序启动器功能](#profiler-access-smprofiler-ui-app-launcher-function)

## 选项 1：从域名详情页面启动 SageMaker Profiler 用户界面
<a name="profiler-access-smprofiler-ui-console-smdomain"></a>

如果您有权访问 SageMaker AI 控制台，则可以选择此选项。

**导航到域详细信息页面**

 以下过程展示如何导航到域详细信息页面。

1. 打开 Amazon A SageMaker I 控制台，网址为[https://console.aws.amazon.com/sagemaker/](https://console.aws.amazon.com/sagemaker/)。

1. 在左侧导航窗格上，选择**域**。

1. 从域列表中，选择要在其中启动 SageMaker Profiler 应用程序的域。

**启动 SageMaker Profiler 用户界面应用程序**

以下过程说明如何启动范围为用户 SageMaker 配置文件的 Profiler 应用程序。

1. 在域详细信息页面上，选择**用户配置文件**选项卡。

1. 确定要为其启动 P SageMaker rofiler UI 应用程序的用户个人资料。

1. 为选定的用户配置文件选择**启动**，然后选择**探查器**。

## 选项 2：从 AI 控制台的 SageMaker Profiler 登录页面启动 SageMaker Profiler 用户界面应用程序 SageMaker
<a name="profiler-access-smprofiler-ui-console-profiler-landing-page"></a>

以下过程介绍如何从 SageMaker AI 控制台的 SageMaker Profiler 登录页面启动 SageMaker Profiler 用户界面应用程序。如果您有权访问 SageMaker AI 控制台，则可以选择此选项。

1. 打开 Amazon A SageMaker I 控制台，网址为[https://console.aws.amazon.com/sagemaker/](https://console.aws.amazon.com/sagemaker/)。

1. 在左侧导航窗格中，选择**探查器**。

1. 在**开始使用**下，选择要在其中启动 Studio Classic 应用程序的域。如果您的用户配置文件仅属于一个域，则看不到用于选择域的选项。

1. 选择要为其启动 P SageMaker rofiler UI 应用程序的用户配置文件。如果域中没有用户配置文件，请选择**创建用户配置文件**。有关创建新的用户配置文件的更多信息，请参阅[添加用户配置文件](https://docs.aws.amazon.com/sagemaker/latest/dg/domain-user-profile-add.html)。

1. 选择**打开探查器**。

## 选项 3：使用 SageMaker AI Python SDK 中的应用程序启动器功能
<a name="profiler-access-smprofiler-ui-app-launcher-function"></a>

如果您是 A SageMaker I 域用户并且只能访问 SageMaker Studio，则可以通过运行该[https://sagemaker.readthedocs.io/en/stable/api/utility/interactive_apps.html#module-sagemaker.interactive_apps.detail_profiler_app](https://sagemaker.readthedocs.io/en/stable/api/utility/interactive_apps.html#module-sagemaker.interactive_apps.detail_profiler_app)功能通过 SageMaker Studio Classic 访问 SageMaker Profiler 用户界面应用程序。

请注意， SageMaker Studio Classic 是 re: Invent 2023 之前的 Studio 用户界面体验，在 re: Invent 2023 上作为应用程序迁移到新设计的 Studio 用户界面中。 SageMaker Profiler UI 应用程序在 SageMaker AI 域级别可用，因此需要您的域 ID 和用户配置文件名称。目前，该`DetailedProfilerApp`功能仅在 SageMaker Studio Classic 应用程序中运行；该功能可以正确接收 Studio Class SageMaker ic 中的域和用户配置文件信息。

对于 re: Invent 2023 之前创建的域名、域名用户和 Studio，除非您按照[从亚马 SageMaker 逊](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-migrate.html) Studio Classic 迁移中的说明进行更新，否则 Studio Classic 将是默认体验。如果是这种情况，则无需执行进一步的操作，您可以通过运行该`DetailProfilerApp`函数直接启动 SageMaker Profiler UI 应用程序。

如果你在 re: Invent 2023 之后创建了新的域名和 Studio，请在 Studio 用户界面中启动 Studio Classic 应用程序，然后运行该`DetailProfilerApp`函数以启动 SageMaker Profiler 用户界面应用程序。

请注意，该`DetailedProfilerApp`功能不适用于其他 SageMaker AI 机器学习 IDEs，例如 SageMaker Studio JupyterLab 应用程序、St SageMaker udio 代码编辑器应用程序和 SageMaker 笔记本实例。如果你在其中运行该`DetailedProfilerApp`函数 IDEs，它会返回指向 SageMaker AI 控制台中 Profiler 登录页面的 URL，而不是打开 Profiler UI 应用程序的直接链接。