package Ġcom . sk sam uel . co hort . memory Ċ Ċ import Ġjava . lang . management . Buffer Pool MX Bean Ċ import Ġjava . lang . management . Management Factory Ċ Ċ fun Ġget Memory Info (): ĠResult < Memory Info > Ġ= Ġrun Catch ing Ġ{ ĊĠ Ġval Ġmemory Pools Ġ= ĠManagement Factory . get Memory Pool MX Beans () ĊĠ Ġval Ġbuffer Pools Ġ= ĠManagement Factory . get Platform MX Beans ( Buffer Pool MX Bean :: class . java ) ĊĠ ĠMemory Info ( memory Pools , Ġbuffer Pools ) Ċ } Ċ