%prun , %lprun , %mprun can give you line-by-line breakdown of time and memory usage in a function or script. See a good tutorial here.
確定! 回上一頁