共用方式為


針對程式代碼優化 (預覽) 進行疑難解答

本文提供針對 Microsoft Azure 使用 Application Insights 程式代碼優化的疑難解答步驟和資訊。

疑難解答檢查清單

步驟 1:檢視有關程式代碼優化設定的影片

檢視下列示範影片,以瞭解如何正確設定程式代碼優化。

步驟 2:確定您的應用程式已連線至 Application Insights 資源

建立 Application Insights 資源 ,並確認其已連線到正確的應用程式。

步驟 3:確認 Application Insights Profiler 已啟用

啟用 Application Insights Profiler

步驟 4:確認 Application Insights Profiler 正在收集配置檔

若要確定配置檔已上傳至您的 Application Insights 資源,請遵循下列步驟:

  1. Azure 入口網站 中,搜尋並選取 Application Insights

  2. 在 Application Insights 資源清單中,選取資源的名稱。

  3. 在 Application Insights 資源的瀏覽窗格中,找出 [ 調查 ] 標題,然後選取 [ 效能]

  4. 在 Application Insights 資源的 [ 能] 頁面上,選取 [ 分析工具]

    Azure 入口網站 顯示如何流覽至 Application Insights Profiler 的螢幕快照。

  5. 在 [ Application Insights Profiler] 頁面上,檢視 [ 最近的分析會話 ] 區段。

    Azure 入口網站 Application Insights Profiler 頁面的螢幕快照。

    注意事項

    如果您沒有看到任何分析會話,請參閱 針對 Application Insights Profiler 進行疑難解答

步驟 5:定期檢查分析工具

成功完成先前的步驟之後,請繼續檢查 Profiler 以取得深入解析。 同時,服務會在偵測到程序代碼中的任何問題時,繼續分析您的配置檔並提供深入解析。 啟用 Application Insights Profiler 之後,可能需要數小時的時間,您才能產生配置檔,並讓服務進行分析。 如果服務偵測到程式代碼中沒有任何問題,則會出現一則訊息,確認找不到任何深入解析。

與我們連絡,以取得說明

如果您有問題或需要相關協助,請建立支援要求,或詢問 Azure community 支援。 您也可以將產品意見反應提交給 Azure 意應見反社群