Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use memory profile (python module) in SAGE

Hi experts.

I want to use memory profile (decoretor module) for see a RAM memory porfile of my scipt:

 https://pypi.python.org/pypi/memory_profiler

in sage.

Following the web page instructions i installed doing:

 $ easy_install -U memory_profiler # pip install -U memory_profiler

But nothing work!

How can I do for use this module in SAGE? Please note that for use that i must write

 $ python -m memory_profiler example.py

Please explain this to me step by step (i'm a totally newby linux and python user).

Thanks a lot!

Use memory profile (python module) in SAGE

Hi experts.

I want to use memory profile (decoretor module) for see a RAM memory porfile of my scipt:

 https://pypi.python.org/pypi/memory_profiler

in sage.

Following the web page instructions i and the post

 http://ask.sagemath.org/question/1382/how-do-i-install-python-modules-or-use-a-different

I installed doing:

 $ easy_install -U memory_profiler # pip install -U memory_profiler
sudo sage --python setup.py install

But nothing work!

How can When I do for use this module in SAGE? Please note that for use that i must writerun the scrip with @profile decorator, I obtain

 $ python -m memory_profiler example.py
Filename: <string>

 ERROR: Could not find file <string>

What am I doing wrong?

Please explain this to me step by step (i'm a totally newby linux and python user).

Thanks a lot!