Skip to content
Snippets Groups Projects
Commit 8516cbc3 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

iproto: account memory used by network buffers

Add function iproto_mem_used() that returns the total amount of memory
allocated for storing input and output buffers. It will be used by
box.info.memory() implementation to show aggregated network statistics.

Note, to account memory used by output buffers, we have to introduce a
separate slab cache (currently, the cache of the tx cord is used).

Needed for #934
parent 49b3f748
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment