diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-16 09:18:47 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-16 09:18:47 +0300 |
commit | ae831ec0a8ff45a31d993798cd315027eba3d897 (patch) | |
tree | dd73a68984f42408e266093b680b1fd11d7050d3 /docs/library/micropython.rst | |
parent | 61616e84ce41e1b1a0fad62704488d79b87cfbe2 (diff) | |
download | micropython-ae831ec0a8ff45a31d993798cd315027eba3d897.tar.gz micropython-ae831ec0a8ff45a31d993798cd315027eba3d897.zip |
docs/library/micropython: Deconditionalize.
Diffstat (limited to 'docs/library/micropython.rst')
-rw-r--r-- | docs/library/micropython.rst | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/docs/library/micropython.rst b/docs/library/micropython.rst index 14e4c917e0..967f822ecf 100644 --- a/docs/library/micropython.rst +++ b/docs/library/micropython.rst @@ -7,26 +7,6 @@ Functions --------- -.. only:: port_pyboard or port_unix - - .. function:: mem_info([verbose]) - - Print information about currently used memory. If the ``verbose`` argument - is given then extra information is printed. - - The information that is printed is implementation dependent, but currently - includes the amount of stack and heap used. In verbose mode it prints out - the entire heap indicating which blocks are used and which are free. - - .. function:: qstr_info([verbose]) - - Print information about currently interned strings. If the ``verbose`` - argument is given then extra information is printed. - - The information that is printed is implementation dependent, but currently - includes the number of interned strings and the amount of RAM they use. In - verbose mode it prints out the names of all RAM-interned strings. - .. function:: alloc_emergency_exception_buf(size) Allocate ``size`` bytes of RAM for the emergency exception buffer (a good @@ -37,3 +17,21 @@ Functions A good way to use this function is to put it at the start of your main script (eg boot.py or main.py) and then the emergency exception buffer will be active for all the code following it. + +.. function:: mem_info([verbose]) + + Print information about currently used memory. If the ``verbose`` argument + is given then extra information is printed. + + The information that is printed is implementation dependent, but currently + includes the amount of stack and heap used. In verbose mode it prints out + the entire heap indicating which blocks are used and which are free. + +.. function:: qstr_info([verbose]) + + Print information about currently interned strings. If the ``verbose`` + argument is given then extra information is printed. + + The information that is printed is implementation dependent, but currently + includes the number of interned strings and the amount of RAM they use. In + verbose mode it prints out the names of all RAM-interned strings. |