I'm currently using cProfile and pstats to profile some Python code.
Is there a way to annotate the source code with the time taken on each line? Ideally this would be a coloured (HTML) version of the source with expensive lines highlighted in red or something.