Searched refs:scaler_ (Results 1 – 2 of 2) sorted by relevance
20 Listener() : total_(0), scaler_(1) {} in Listener()21 explicit Listener(int scaler) : total_(0), scaler_(scaler) {} in Listener()23 void IncrementByMultipleOfScaler(int x) { total_ += x * scaler_; } in IncrementByMultipleOfScaler()29 int scaler_; member in base::__anon65ce15810111::Listener
45 explicit Adder(int scaler) : total(0), scaler_(scaler) {} in Adder()48 void Observe(int x) override { total += x * scaler_; } in Observe()54 int scaler_; member in base::__anon50f2eebc0111::Adder