diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-14 03:23:37 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-14 03:23:37 +0300 |
commit | a0299cc63aecdd668ee35785661f5cb42e3bc831 (patch) | |
tree | ec4864e0e276585b9f8ebb44ca3f39dc2c650d48 /server/TracyWorker.hpp | |
parent | f57cac9042ee618e3038a7c14210ade17c3c72a6 (diff) |
Optimize calculation of standard deviation.
Diffstat (limited to 'server/TracyWorker.hpp')
-rw-r--r-- | server/TracyWorker.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 9c2c1123..4847d0b7 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -86,6 +86,7 @@ private: int64_t min = std::numeric_limits<int64_t>::max(); int64_t max = std::numeric_limits<int64_t>::min(); int64_t total = 0; + double sumSq = 0; int64_t selfMin = std::numeric_limits<int64_t>::max(); int64_t selfMax = std::numeric_limits<int64_t>::min(); int64_t selfTotal = 0; |