Closed khrithik96 closed 1 year ago
Try pid string or RawObj(pid)
sending pid
as a string fixed the timeout issue _rpc_channel.call("com.apple.instruments.server.services.networking", "setTargetPID:", pid)
.
But it looks like it is giving the data at the device level.
You can also try to use com.apple.xcode.debug-gauge-data-providers.NetworkStatistics
service. Refer to demo netstatPID.py
com.apple.xcode.debug-gauge-data-providers.NetworkStatistics
is working fine(In some cases, it gives 0 values).
Thanks.
Tried
network_process
. It should give data from the network debug gauge but it is consistently giving same value(sometimes this value is 0) every time.Trying to use this service
com.apple.instruments.server.services.networking
using the code https://github.com/YueChen-C/py-ios-device/blob/c50edc5cee9bd0fac84208812a76b10f72748821/ios_device/py_ios_device.py#L304. Steps(Python code):Trying to set the target process id here. Ref: https://github.com/YueChen-C/py-ios-device/blob/c50edc5cee9bd0fac84208812a76b10f72748821/ios_device/util/variables.py#L74
The line
_rpc_channel.call("com.apple.instruments.server.services.networking", "setTargetPID:", pid)
is timing out.Is there any way we can get an apps network usage?