[功耗]Android TCP_UDP联网相关日志打印

// UDP 函数末尾
mtk/platform/libcore / ojluni/src/main/java/java/net/DatagramSocket.java
public void send(DatagramPacket p) throws IOException {


System.out.println("[datagram socket] send "+ p.getAddress() + ", port " + p.getPort());
}

// TCP 函数末尾
mtk/platform/libcore / ojluni/src/main/java/java/net/Socket.java
public void connect(SocketAddress endpoint, int timeout) throws IOException {

System.out.println("[socket] connection "+ endpoint + “,LocalPort=” + getLocalPort() + “(” + timeout + “)”);
}

你可能感兴趣的:(功耗异常分析)