3 À<×enã@s.ddlZddljZddlZGdd„deƒZdS)éNc@sleZdZdZdddgZdd„Zdd„Zd d „Zd d „Ze d d„ƒZ e j dd„ƒZ e dd„ƒZ e dd„ƒZ dS)ÚProfilez' Representation of a tuning profile. Ú_nameÚ_optionsÚ_unitscCs||_|j|ƒ|j|ƒdS)N)rÚ _init_optionsÚ _init_units)ÚselfÚnameÚconfig©r ú/usr/lib/python3.6/profile.pyÚ__init__ s zProfile.__init__cCs$i|_tj|kr t|tjƒ|_dS)N)rÚconstsÚPLUGIN_MAIN_UNIT_NAMEÚdict)rr r r r rs zProfile._init_optionscCs@tjƒ|_x0|D](}|tjkr|j|||ƒ}||j|<qWdS)N)Ú collectionsÚ OrderedDictrrrÚ _create_unit)rr Z unit_nameZnew_unitr r r rs    zProfile._init_unitscCstjjj||ƒS)N)ÚtunedZprofilesZunitZUnit)rr r r r r rszProfile._create_unitcCs|jS)z Profile name. )r)rr r r r sz Profile.namecCs ||_dS)N)r)rÚvaluer r r r 'scCs|jS)z$ Units included in the profile. )r)rr r r Úunits+sz Profile.unitscCs|jS)z Profile global options. )r)rr r r Úoptions2szProfile.optionsN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú __slots__r rrrÚpropertyr Úsetterrrr r r r rs   r)Ztuned.profiles.unitrZ tuned.constsrrÚobjectrr r r r Ús