For example, using a dict prettyprinter:
?- thread_self(Me),thread_statistics(Me,Stats),dict_pp(Stats,_{border:true}). +--------------------------------------------+ | thread | +--------------------------------------------+ |id : main | |stacks : +---------------------------------+| | | stacks || | +---------------------------------+| | |global : +------------------+ || | | | stack | || | | +------------------+ || | | |allocated : 131040| || | | |name : global| || | | |usage : 103888| || | | +------------------+ || | |local : +------------------+ || | | | stack | || | | +------------------+ || | | |allocated : 118648| || | | |name : local | || | | |usage : 2280 | || | | +------------------+ || | |total : +----------------------+|| | | | stack ||| | | +----------------------+|| | | |allocated : 382784 ||| | | |limit : 1073741824||| | | |name : stacks ||| | | |usage : 106984 ||| | | +----------------------+|| | |trail : +------------------+ || | | | stack | || | | +------------------+ || | | |allocated : 133096| || | | |name : trail | || | | |usage : 816 | || | | +------------------+ || | +---------------------------------+| |status : running | |time : +------------------------------+ | | | time | | | +------------------------------+ | | |cpu : 0.465223 | | | |epoch : 1619962296.451559| | | |inferences : 695283 | | | +------------------------------+ | +--------------------------------------------+