什么是 com.android.tools.profiler.support.network.httpurl.HttpURLConnection?
What is com.android.tools.profiler.support.network.httpurl.HttpURLConnection?
当我使用 Android Studio 的分析器进行分析时,com.android.tools.profiler.support.network.httpurl.HttpURLConnection
似乎被使用而不是 java.net.HttpURLConnection
(我在代码中使用)。它是什么以及我在哪里可以找到源代码?
我的目标是 API 23(compileSdkVersion
和 targetSdkVersion
)minSdkVersion = 18
。
谷歌搜索 "android profiler httplurlconnection" 将我带到这个网站:
Inspect network traffic with Network Profiler | Android Developers
The Network Profiler displays realtime network activity on a timeline,
showing data sent and received, as well as the current number of
connections. This lets you examine how and when your app transfers
data, and optimize the underlying code appropriately.
...
Currently, the Network Profiler supports only the HttpURLConnection and OkHttp
libraries for network connections.
因此,当分析器 运行 可以拦截和分析网络流量时,此 class 将替换 java.net.HttpURLConnection
。
Android Studio is an open source project, see this SO question for links
com.android.tools.profiler.support.network.httpurl.HttpURLConnection
似乎被使用而不是 java.net.HttpURLConnection
(我在代码中使用)。它是什么以及我在哪里可以找到源代码?
我的目标是 API 23(compileSdkVersion
和 targetSdkVersion
)minSdkVersion = 18
。
谷歌搜索 "android profiler httplurlconnection" 将我带到这个网站:
Inspect network traffic with Network Profiler | Android Developers
The Network Profiler displays realtime network activity on a timeline, showing data sent and received, as well as the current number of connections. This lets you examine how and when your app transfers data, and optimize the underlying code appropriately.
...
Currently, the Network Profiler supports only the HttpURLConnection and OkHttp libraries for network connections.
因此,当分析器 运行 可以拦截和分析网络流量时,此 class 将替换 java.net.HttpURLConnection
。
Android Studio is an open source project, see this SO question for links