BadgerDB
 All Classes Namespaces Functions Variables Typedefs 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 122 of file buffer.h.

Constructor & Destructor Documentation

badgerdb::BufStats::BufStats ( )
inline

Constructor of BufStats class

Definition at line 150 of file buffer.h.

151  {
152  clear();
153  }

Member Function Documentation

void badgerdb::BufStats::clear ( )
inline

Clear all values

Definition at line 142 of file buffer.h.

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

Member Data Documentation

int badgerdb::BufStats::accesses

Total number of accesses to buffer pool

Definition at line 127 of file buffer.h.

int badgerdb::BufStats::diskreads

Number of pages read from disk (including allocs)

Definition at line 132 of file buffer.h.

int badgerdb::BufStats::diskwrites

Number of pages written back to disk

Definition at line 137 of file buffer.h.


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