On Tue, 17 Sep 2019, J wrote: > TBH I can't get it to work > and > "sagemath %mprun" > gives to pages of search results including this thread ^^
Duh. Somebody should add a page on this to the doc. First, said ./sage -pip install memory_profiler and then normally ./sage --notebook=jupyter In a notebook I did def power2(x): L = range(x) s = 0 for i in L: s += 2*i+1 return s and then loaded the extension %load_ext memory_profiler and last ran %memit power2(5) It works. However, %mprun -f power2 power2(5) does not. Is there an easy way to profile memory usage on line-by-line basis? -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/alpine.DEB.2.21.9999.1909181316180.53292%40shell.sis.uta.fi.