Each thread consumes a stack that has a fixed size and is created when the thread starts. Usually it is 512 K / 1M, but at startup it is only a virtual size.
However, for dynamically distributed data (malloc) this is information about the volume of the process, not streaming. Please note that some alternative malloc implementations (e.g. tcmalloc) may provide more advanced statistics.
source
share