~michihenning/persistent-cache-cpp/merge-devel

« back to all changes in this revision

Viewing changes to include/core/persistent_cache_stats.h

  • Committer: CI Train Bot
  • Author(s): Michi Henning
  • Date: 2015-08-19 21:50:24 UTC
  • mfrom: (20.1.4 landing-150819)
  • Revision ID: ci-train-bot@canonical.com-20150819215024-8da7ih6wvyf9fvmp
Minor enhancements to cache. Suppressed a lintian warning, fixed autopkg test dependency, and added run length averages to stats.
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
    int64_t longest_miss_run() const noexcept;
118
118
 
119
119
    /**
 
120
    \brief Returns the number of hit runs.
 
121
    */
 
122
    int64_t hit_runs() const noexcept;
 
123
 
 
124
    /**
 
125
    \brief Returns the number of miss runs.
 
126
    */
 
127
    int64_t miss_runs() const noexcept;
 
128
 
 
129
    /**
 
130
    \brief Returns a rolling average of the hit run length.
 
131
    */
 
132
    double avg_hit_run_length() const noexcept;
 
133
 
 
134
    /**
 
135
    \brief Returns a rolling average of the miss run length.
 
136
    */
 
137
    double avg_miss_run_length() const noexcept;
 
138
 
 
139
    /**
120
140
    \brief Returns the number of entries that were evicted due to being expired.
121
141
    */
122
142
    int64_t ttl_evictions() const noexcept;