File: //lib/python2.7/site-packages/azurelinuxagent/common/cgroupstelemetry.pyc
�
d�bc @ sb d d l Z d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t logger( t CpuCgroup( t ustrt CGroupsTelemetryc B s� e Z d Z i Z e Z e j � Z e d � � Z
e d � � Z e d � � Z e d � � Z
e d � � Z e d � � Z e d � � Z RS( s
c C s
| t _ d S( N( R t _track_throttled_time( t value( ( sK /usr/lib/python2.7/site-packages/azurelinuxagent/common/cgroupstelemetry.pyt set_track_throttled_time s c C s t j S( N( R R ( ( ( sK /usr/lib/python2.7/site-packages/azurelinuxagent/common/cgroupstelemetry.pyt get_track_throttled_time# s c C se t | t � r | j � n t j �: t j | j � s[ | t j | j <t j d | � n Wd QXd S( sJ
Adds the given item to the dictionary of tracked cgroups
s Started tracking cgroup {0}N(
t
isinstanceR t initialize_cpu_usageR t _rlockt
is_trackedt patht _trackedR t info( t cgroup( ( sK /usr/lib/python2.7/site-packages/azurelinuxagent/common/cgroupstelemetry.pyt track_cgroup'