aboutsummaryrefslogtreecommitdiffhomepage
path: root/memprof/memprof_stat.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-11-25 23:33:09 +0300
committerlevlam <levlam@telegram.org>2023-11-25 23:33:09 +0300
commitf03ffe1d31d08934ba1864fe12fbf11f09bd1938 (patch)
tree9bfc764b5656c153ed502480a8854720b4cb7a79 /memprof/memprof_stat.cpp
parente58847a5fb54cd0cb20808d98efe2d173480fc23 (diff)
Fix singular usages of "statistics".
Diffstat (limited to 'memprof/memprof_stat.cpp')
-rw-r--r--memprof/memprof_stat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/memprof/memprof_stat.cpp b/memprof/memprof_stat.cpp
index a6c524a4e..0ec770a64 100644
--- a/memprof/memprof_stat.cpp
+++ b/memprof/memprof_stat.cpp
@@ -41,7 +41,7 @@ static std::atomic<std::size_t> total_memory_used;
void register_xalloc(malloc_info *info, std::int32_t diff) {
my_assert(info->size >= 0);
// TODO: this is very slow in case of several threads.
- // Currently this statistics is intended only for memory benchmarks.
+ // Currently, the statistics are intended only for memory benchmarks.
total_memory_used.fetch_add(diff * info->size, std::memory_order_relaxed);
}