microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 25 forks source link

QoS insights at runtime #90

Closed jamesadevine closed 3 years ago

jamesadevine commented 3 years ago

Provide QoS statistics to end users (e.g. device manufactures, makers) for better identification of bus bottle necks.

pelikhan commented 3 years ago

So the idea is stuff the number of packets sent in the announce packet during this announce phase.

This allows a listener (like webusb) to:

Questions:

pelikhan commented 3 years ago

I stumbled on this. Is this active code @mmoskal ? We could surface this in a register.

    export function diagnostics(): jacdac.JDDiagnostics {
        return new jacdac.JDDiagnostics(jacdac.__physGetDiagnostics());
    }