Computing > Programming

USB performance monitors


I'm looking for modified USB drivers for a PC/Mac/Linux system that will give me information useful for optimizing the performance of microcontroller-side USB code.
I think I've seen "trace" code that provides really detailed information about everything that goes on, which is probably useful for debugging the actual driver logic, but in this case I'm more interested in something that will tell me stuff like "average message size over 1MB was 64bytes instead of 2bytes!  Good for you!", which should be easier (?)

I doubt that there is something like that. But Wireshark with USB capture should be more than usable for your needs.

Nominal Animal:
There is usbtop for Linux.  I don't think it has a USB packet size histogram, but adding one shouldn't be too difficult.

Personally, I tend to use the full dump instead.

You could use usbmon + some scripting. Or for a more general solution you could use BPF through a suitable frontend. See for example the BPF Compiler Collection. BCC contains all sorts of handy performance measurement tools. The show-pretty-histogram-for-filesystem-performance tools in there might get you close enough. Or you could use dtrace. The following links give a good overview:



[0] Message Index

There was an error while thanking
Go to full version