Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
net_instaweb::CacheSpammer Class Reference

#include "cache_spammer.h"

Inheritance diagram for net_instaweb::CacheSpammer:

Public Member Functions

void GetDone (bool found, StringPiece key)
 Called when a Get completes.
- Public Member Functions inherited from net_instaweb::ThreadSystem::Thread
 Thread (ThreadSystem *runtime, StringPiece name, ThreadFlags flags)
virtual ~Thread ()
bool Start ()
bool Started () const
void Join ()
GoogleString name () const

Static Public Member Functions

static void RunTests (int num_threads, int num_iters, int num_inserts, bool expecting_evictions, bool do_deletes, const char *value_prefix, CacheInterface *cache, ThreadSystem *thread_runtime)

Protected Member Functions

virtual void Run ()

Detailed Description

Helper class for blasting a cache with concurrent requests. Refactored from

Member Function Documentation

static void net_instaweb::CacheSpammer::RunTests ( int  num_threads,
int  num_iters,
int  num_inserts,
bool  expecting_evictions,
bool  do_deletes,
const char *  value_prefix,
CacheInterface cache,
ThreadSystem thread_runtime 

value_prefix will be suffixed with an integer when stored. num_threads indicates how many threads will run in parallel. num_iters indicates how many times each thread will run a big loop. num_inserts sets the number of keys inserted and looked up in the loop.

num_iters will be divided down by 100 when running on valgrind.

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