【问题标题】:App not showing network activity in Android Studio's Profiler应用程序未在 Android Studio 的 Profiler 中显示网络活动
【发布时间】:2019-07-30 12:07:11
【问题描述】:

我正在尝试分析我的应用的网络活动,例如连接数以及每个连接的响应和请求的总大小。 但是,它不会在我的 Profiler 的网络部分中注册。

我正在使用how to create Socket connection in Android? 中解释的 Java 套接字。

如何在工具中显示?

【问题讨论】:

    标签: android sockets httpurlconnection


    【解决方案1】:

    显然,Android Studio 的(网络)分析器仅捕获通过 HttpURLConnection 和 OkHttp 类建立的连接。如果您使用 Java API 中的Socket,这将不起作用。

    来源:https://developer.android.com/studio/profile/network-profiler

    【讨论】:

      猜你喜欢
      • 2014-08-13
      • 2020-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多