BadgerDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Member Functions | Public Attributes | List of all members
badgerdb::BufStats Struct Reference

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

#include <buffer.h>

Public Member Functions

void clear ()
 
 BufStats ()
 

Public Attributes

int accesses
 
int diskreads
 
int diskwrites
 

Detailed Description

Class to maintain statistics of buffer usage.

Definition at line 123 of file buffer.h.

Constructor & Destructor Documentation

badgerdb::BufStats::BufStats ( )
inline

Constructor of BufStats class

Definition at line 151 of file buffer.h.

152  {
153  clear();
154  }

Member Function Documentation

void badgerdb::BufStats::clear ( )
inline

Clear all values

Definition at line 143 of file buffer.h.

144  {
145  accesses = diskreads = diskwrites = 0;
146  }

Member Data Documentation

int badgerdb::BufStats::accesses

Total number of accesses to buffer pool

Definition at line 128 of file buffer.h.

int badgerdb::BufStats::diskreads

Number of pages read from disk (including allocs)

Definition at line 133 of file buffer.h.

int badgerdb::BufStats::diskwrites

Number of pages written back to disk

Definition at line 138 of file buffer.h.


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