
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
<en                 @   s.   d dl Zd dljZd dlZG dd deZdS )    Nc               @   sl   e Zd ZdZdddgZdd Zdd Zd	d
 Zdd Ze	dd Z
e
jdd Z
e	dd Ze	dd ZdS )Profilez'
	Representation of a tuning profile.
	_name_options_unitsc             C   s   || _ | j| | j| d S )N)r   _init_options_init_units)selfnameconfig r   /usr/lib/python3.6/profile.py__init__   s    
zProfile.__init__c             C   s$   i | _ tj|kr t|tj | _ d S )N)r   constsPLUGIN_MAIN_UNIT_NAMEdict)r   r
   r   r   r   r      s    
zProfile._init_optionsc             C   s@   t j | _x0|D ](}|tjkr| j||| }|| j|< qW d S )N)collectionsOrderedDictr   r   r   _create_unit)r   r
   Z	unit_nameZnew_unitr   r   r   r      s
    


zProfile._init_unitsc             C   s   t jjj||S )N)tunedZprofilesZunitZUnit)r   r	   r
   r   r   r   r      s    zProfile._create_unitc             C   s   | j S )z
		Profile name.
		)r   )r   r   r   r   r	       s    zProfile.namec             C   s
   || _ d S )N)r   )r   valuer   r   r   r	   '   s    c             C   s   | j S )z$
		Units included in the profile.
		)r   )r   r   r   r   units+   s    zProfile.unitsc             C   s   | j S )z
		Profile global options.
		)r   )r   r   r   r   options2   s    zProfile.optionsN)__name__
__module____qualname____doc__	__slots__r   r   r   r   propertyr	   setterr   r   r   r   r   r   r      s   
r   )Ztuned.profiles.unitr   Ztuned.constsr   r   objectr   r   r   r   r   <module>   s   
