profile cmd
It'd be very useful if it didn't skew results so much (50ms per frame or similar). I believe it's in engine (C++) code so I cannot do it myself. As far as I understand it's slow because it's written without care about performance - I guess it does several shader switches, many, many draw calls and so on.