19 #ifndef PAGESPEED_KERNEL_UTIL_SIMPLE_STATS_H_
20 #define PAGESPEED_KERNEL_UTIL_SIMPLE_STATS_H_
30 namespace net_instaweb {
39 virtual StringPiece GetName()
const {
return StringPiece(); }
46 virtual int64 SetReturningPreviousValueLockHeld(int64 value);
63 ThreadSystem* thread_system()
const {
return thread_system_; }
TimeDVariable.
Definition: statistics_template.h:358
virtual Var * NewVariable(StringPiece name)
Interface to subclass.
virtual UpDown * NewUpDownCounter(StringPiece name)
Interface to subclass.
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
virtual int64 GetLockHeld() const
Get/Setters that may only be called if you already hold the mutex.
Definition: scoped_ptr.h:30
SimpleStats(ThreadSystem *thread_system)
Simple name/value pair statistics implementation.
Definition: simple_stats.h:55
Trivial implementation. But Count() returns a meaningful value.
Definition: statistics.h:255
Definition: statistics.h:112
Definition: thread_system.h:40
These variables are thread-safe.
Definition: simple_stats.h:35