wisc_db
Public Member Functions | Public Attributes | List of all members
wiscdb::BufferStats Struct Reference

Class to maintain statistics of buffer usage. More...

#include <buffer.h>

Public Member Functions

void clear ()
 
 BufferStats ()
 

Public Attributes

int accesses
 
int diskreads
 
int diskwrites
 

Detailed Description

Class to maintain statistics of buffer usage.

Definition at line 92 of file buffer.h.

Constructor & Destructor Documentation

wiscdb::BufferStats::BufferStats ( )
inline

Constructor of BufferStats class

Definition at line 120 of file buffer.h.

121  {
122  clear();
123  }

Member Function Documentation

void wiscdb::BufferStats::clear ( )
inline

Clear all values

Definition at line 112 of file buffer.h.

113  {
114  accesses = diskreads = diskwrites = 0;
115  }

Member Data Documentation

int wiscdb::BufferStats::accesses

Total number of accesses to buffer pool

Definition at line 97 of file buffer.h.

int wiscdb::BufferStats::diskreads

Number of pages read from disk (including allocs)

Definition at line 102 of file buffer.h.

int wiscdb::BufferStats::diskwrites

Number of pages written back to disk

Definition at line 107 of file buffer.h.


The documentation for this struct was generated from the following file: