jtop/core/memory.py
def meminfo(self):
        """
        Extract all memory information about board.
        - NvMapMemUsed: Is the shared memory between CPU and GPU
        - NvMapMemFree: To be define
        """
        meminfo = {}
        if os.path.isfile("/proc/meminfo"):
            meminfo = mem_info()
        total = meminfo.get('MemTotal', {})
        available = meminfo.get('MemAvailable', {})
        shared = meminfo.get('NvMapMemUsed', {})
        return {
            'tot': total.get('val', 0),
            'use': total.get('val', 0) - available.get('val', 0),
            'shared': shared.get('val', 0),
            'unit': total.get('unit', 'k')
        }

        Extract all memory information about board.
        - NvMapMemUsed: Is the shared memory between CPU and GPU
        - NvMapMemFree: To be define
        
Extract all memory information about board.
NvMapMemUsed: Is the shared memory between CPU and GPU
NvMapMemFree: To be define
Extract all memory information about board . NvMapMemUsed : Is the shared memory between CPU and GPU NvMapMemFree : To be define
def meminfo(self):
        meminfo = {}
        if os.path.isfile("/proc/meminfo"):
            meminfo = mem_info()
        total = meminfo.get('MemTotal', {})
        available = meminfo.get('MemAvailable', {})
        shared = meminfo.get('NvMapMemUsed', {})
        return {
            'tot': total.get('val', 0),
            'use': total.get('val', 0) - available.get('val', 0),
            'shared': shared.get('val', 0),
            'unit': total.get('unit', 'k')
        }
def meminfo ( self ) : meminfo = { } if os . path . isfile ( "/proc/meminfo" ) : meminfo = mem_info ( ) total = meminfo . get ( 'MemTotal' , { } ) available = meminfo . get ( 'MemAvailable' , { } ) shared = meminfo . get ( 'NvMapMemUsed' , { } ) return { 'tot' : total . get ( 'val' , 0 ) , 'use' : total . get ( 'val' , 0 ) - available . get ( 'val' , 0 ) , 'shared' : shared . get ( 'val' , 0 ) , 'unit' : total . get ( 'unit' , 'k' ) }
Extract all memory information about board.
Extract all memory information about board .
"""
        Extract all memory information about board.
        - NvMapMemUsed: Is the shared memory between CPU and GPU
        - NvMapMemFree: To be define
        """
self