Lines Matching defs:value
58 // value of the counter. Each thread calling this function
60 // The return value must not be cached and re-used across
97 // Internally, a counter represents a value in a row of a StatsTable.
98 // The row has a 32bit value for each process/thread in the table and also
104 void Set(int value) { GetPtr()->store(value, std::memory_order_relaxed); }
106 void Increment(int value = 1) {
107 GetPtr()->fetch_add(value, std::memory_order_relaxed);
110 void Decrement(int value = 1) {
111 GetPtr()->fetch_sub(value, std::memory_order_relaxed);
323 // Add a time value ("inner" scope).
367 // AggretatedMemoryHistogram collects (time, value) sample pairs and turns
374 // each time interval [x; x + T) the backing histogram gets one sample value
477 double value = (current_value + last_value_) / 2;
479 // The value is the average for [last_ms_; current_ms].
480 // Return the weighted average of the aggregate_value_ and the value.
482 value * ((current_ms - last_ms_) / interval_ms);