Profiling code in the Sage notebook
How can one profile Sage code in the notebook? I know you can use
%prun <command> on the command line, but I understand this is a feature of IPython so it's not available in the notebook. I've looked (and searched) through the reference manual, sage-devel, and asksage to no avail.