-
-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Description
If one uses the Python profiler through Sage's Ipython command line, the input line is not preparsed, which is potentially very confusing. E.g., this should print 256:
sage: %prun print 2^8
10
2 function calls in 0.000 CPU seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.000 0.000 <string>:1(<module>)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
sage:
Component: user interface
Author: Mike Hansen
Reviewer: Ross Kyprianou
Merged: sage-4.3.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/2054