
- Erlang Tutorial
- Erlang - Home
- Erlang - Overview
- Erlang - Environment
- Erlang - Basic Syntax
- Erlang - Shell
- Erlang - Data Types
- Erlang - Variables
- Erlang - Operators
- Erlang - Loops
- Erlang - Decision Making
- Erlang - Functions
- Erlang - Modules
- Erlang - Recursion
- Erlang - Numbers
- Erlang - Strings
- Erlang - Lists
- Erlang - File I/O
- Erlang - Atoms
- Erlang - Maps
- Erlang - Tuples
- Erlang - Records
- Erlang - Exceptions
- Erlang - Macros
- Erlang - Header Files
- Erlang - Preprocessors
- Erlang - Pattern Matching
- Erlang - Guards
- Erlang - BIFS
- Erlang - Binaries
- Erlang - Funs
- Erlang - Processes
- Erlang - Emails
- Erlang - Databases
- Erlang - Ports
- Erlang - Distributed Programming
- Erlang - OTP
- Erlang - Concurrency
- Erlang - Performance
- Erlang - Drivers
- Erlang - Web Programming
- Erlang Useful Resources
- Erlang - Quick Guide
- Erlang - Useful Resources
- Erlang - Discussion
Erlang - memory
Returns a list containing information about memory dynamically allocated by the Erlang emulator.Each element of the list is a tuple {Type, Size}. The first element Type is an atom describing memory type.
Syntax
memory()
Parameters
None
Return Value
Returns a list containing information about memory dynamically allocated by the Erlang emulator.
For example
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[erlang:memory()]).
Output
When we run the above program we will get the following result. Depending on the system, the output will differ −
[{total,15515688}, {processes,4520064}, {processes_used,4516976}, {system,10995624}, {atom,132249}, {atom_used,119002}, {binary,768584}, {code,3002085}, {ets,221944}]
erlang_bifs.htm
Advertisements