perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

Perfetto incompatible with chrome://inspect

Open jdarpinian opened this issue 1 year ago • 2 comments

If using chrome://inspect to do port forwarding and/or remote inspection of Chrome on a device, Perfetto will fail to record traces on the device with this unhelpful error:

    A WebUSB error occurred
    ✕
    Is adb already running on the host? Run this command and try again.
    > adb kill-server

    
    For details see b/159048331

At the very least, this error message could be improved for non-googlers. But ideally, it would be able to work simultaneously. If that's not possible, it would be nice at least if Perfetto could do port forwarding itself.

jdarpinian avatar Jul 03 '24 05:07 jdarpinian

Seems a reasonable request, we'll probably get to it during a fixit.

LalitMaganti avatar Jul 03 '24 10:07 LalitMaganti

I'm not sure that is really fixable (other than improving the error message). Chroem://inspect uses webusb and takes exclusive access of the USB interface for ADB. Perfetto wants to do the same.

You can't have both at the same time. Not without some quite convoluted work across chrome://inspect and perfetto, which nobody will probably ever get to.

primiano avatar Jul 03 '24 11:07 primiano