Skip to content

Document space:stat() #3841

Closed
Closed
@TarantoolBot

Description

@TarantoolBot

Related dev. issue(s): tarantool/tarantool#6762
Related doc. issue(s): #3840

Product: Tarantool
Since: 3.0
Root document: Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/
SME: @ Gumix

Details

space_object:stat() — Get statistics on the memory usage

Returns a table with the cumulative statistics on the memory usage by tuples in the space. The statistics is grouped by arena types: "memtx" or "malloc". For a detailed description of each field see tuple_object:info() (#3840).

Note: The statistics is collected only for memtx storage engine. For other types of spaces, an empty table is returned.

Example:

tarantool> box.space.test:stat()
---
- tuple:
    memtx:
      data_size: 5100699
      header_size: 96
      field_map_size: 40
      waste_size: 143093
    malloc:
      data_size: 18850077
      header_size: 70
      field_map_size: 28
      waste_size: 0
...

Requested by @ Gumix in tarantool/tarantool@45f9759.

Metadata

Metadata

Assignees

Labels

3.0reference[location] Tarantool manual, Reference part

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions