Sindbad~EG File Manager
3
x?ag�. � @ s d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlT ddlT ddlT G dd � d e�Z G d
d� de�Z
G dd
� d
e�ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )a�
Copyright Red Hat
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
� )�absolute_import)�division)�print_function)�unicode_literals� )�*c s e Zd Zd� fdd� Z� ZS )�BlockAllocatorStatisticsc s4 t t| �j|td�td�td�gfddi|�� d S )NZ slabCountZslabsOpenedZ
slabsReopened�procRoot�vdo)�superr �__init__�Uint64Field)�self�name�kwargs)� __class__� �#/usr/lib/python3.6/VDOStatistics.pyr s
z!BlockAllocatorStatistics.__init__)r )�__name__�
__module__�__qualname__r �
__classcell__r r )r r r s r c s e Zd Zd� fdd� Z� ZS )�CommitStatisticsc sH t t| �j|tddd�td�tddd�td�td�gfd d
i|�� d S )NZbatchingz$started - $written)�derivedZstartedZwritingz$written - $committedZwrittenZ committedr r
)r r r r
)r r r )r r r r - s
zCommitStatistics.__init__)r )r r r r r r r )r r r , s r c s e Zd Zd� fdd� Z� ZS )�RecoveryJournalStatisticsc sL t t| �j|tddd�tddd�tddd�tddd�gfd d
d�|�� d S )NZdiskFullzdisk full count)�labelZslabJournalCommitsRequestedzcommits requested countZentries)�labelPrefixZblocks�journalr
)r r )r r r r
r )r r r )r r r r ; s
z"RecoveryJournalStatistics.__init__)r )r r r r r r r )r r r : s r c s e Zd Zd� fdd� Z� ZS )�PackerStatisticsc s4 t t| �j|td�td�td�gfddi|�� d S )NZcompressedFragmentsWrittenZcompressedBlocksWrittenZcompressedFragmentsInPackerr r
)r r r r
)r r r )r r r r I s
zPackerStatistics.__init__)r )r r r r r r r )r r r H s r c s e Zd Zd� fdd� Z� ZS )�SlabJournalStatisticsc sB t t| �j|td�td�td�td�td�gfddd�|�� d S ) NZ
diskFullCount�
flushCountZblockedCount�
blocksWrittenZ
tailBusyCountzslab journalr
)r r )r r r r
)r r r )r r r r U s
zSlabJournalStatistics.__init__)r )r r r r r r r )r r r T s r c s e Zd Zd� fdd� Z� ZS )�SlabSummaryStatisticsc s* t t| �j|td�gfddd�|�� d S )Nr! zslab summaryr
)r r )r r"