Rate analysis for embedded systems