Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-03-14 03:23:37 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-03-14 03:23:37 +0300
commita0299cc63aecdd668ee35785661f5cb42e3bc831 (patch)
treeec4864e0e276585b9f8ebb44ca3f39dc2c650d48 /server/TracyWorker.hpp
parentf57cac9042ee618e3038a7c14210ade17c3c72a6 (diff)
Optimize calculation of standard deviation.
Diffstat (limited to 'server/TracyWorker.hpp')
-rw-r--r--server/TracyWorker.hpp1
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;