Disable Functions: Path : /usr/libexec/perf-core/scripts/python/ |
Current File : //usr/libexec/perf-core/scripts/python/mem-phys-addr.pyo |
� G��dc @ s� d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z e j j e j d d � g Z g Z d a e j � Z d a d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( i����( t divisionNt PERF_EXEC_PATHs. /scripts/python/Perf-Trace-Util/lib/Perf/Tracec C s� t d d � a x� t t � D]� \ } } t j d | d � } | d j � d k r� t j t | d d � � t j t | d d � � n | d j � d k r t j t | d d � � t j t | d d � � q q Wd S( Ns /proc/iomemt rs -|:i s System RAMi i i s Persistent Memory( t opent ft enumeratet ret splitt stript system_ramt appendt longt pmem( t it jt m( ( s6 /usr/libexec/perf-core/scripts/python/mem-phys-addr.pyt parse_iomem s c C sz d t GHd d Gd d Gt t j � � } xH t t j � d d � d t �D]% \ } } d | | d | | f GqM Wd S( Ns Event: %ss %-40s %10s %10s s Memory typet countt percentages( ----------------------------------------s -----------t keyc S s | \ } } | | f S( N( ( t .0t kt v( ( s6 /usr/libexec/perf-core/scripts/python/mem-phys-addr.pyt <lambda>/ s t reverses %-40s %10d %10.1f%% id ( s Memory types countR ( s( ----------------------------------------s -----------s -----------( t event_namet sumt load_mem_type_cntt valuest sortedt most_commont True( t totalt mem_typeR ( ( s6 /usr/libexec/perf-core/scripts/python/mem-phys-addr.pyt print_memory_type( s c C s t � d S( N( R ( ( ( s6 /usr/libexec/perf-core/scripts/python/mem-phys-addr.pyt trace_begin2 s c C s t � t j � d S( N( R"