Holds the value & stability-metadata for a property.
More...
#include "property_cache.h"
|
class | PropertyCache |
|
class | PropertyPage |
|
Holds the value & stability-metadata for a property.
static bool net_instaweb::PropertyValue::IsIndexOfLeastSetBitSmaller |
( |
uint64 |
value, |
|
|
int |
index |
|
) |
| |
|
static |
Returns true if the index of least set bit for value is less than given index. The results are undefined when index is > 64.
bool net_instaweb::PropertyValue::IsRecentlyConstant |
( |
int |
num_writes_unchanged | ) |
const |
Returns true if the value has not changed for last num_writes_unchanged writes and false otherwise.
bool net_instaweb::PropertyValue::IsStable |
( |
int |
stable_hit_per_thousand_threshold | ) |
const |
Determines whether this property is sufficiently stable to be considered useful. E.g. if 30% of the time a property is wrong, then it probably cannot be relied upon for making optimization decisions.
bool net_instaweb::PropertyValue::was_read |
( |
| ) |
|
|
inline |
Determines whether a read was completed. Thus was_read() can be true even if !has_value().
int64 net_instaweb::PropertyValue::write_timestamp_ms |
( |
| ) |
const |
The timestamp of the last time this data was written (in milliseconds since 1970).
The documentation for this class was generated from the following file: