Skip to content

prun is not preparsed -- potentially very confusing #2054

@williamstein

Description

@williamstein

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions