diff options
author | Alexander Gololobov <davenger@yandex-team.com> | 2022-02-10 16:47:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:37 +0300 |
commit | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch) | |
tree | 4ec132c1665bd4d68e3628aa18d937c70d32413b /library/cpp/lfalloc/dbg_info | |
parent | 54295b9bd4dc45c54d804084fd846d945148a7f0 (diff) | |
download | ydb-39608cdb86363c75ce55b2b9a69841c3b71f22cf.tar.gz |
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lfalloc/dbg_info')
-rw-r--r-- | library/cpp/lfalloc/dbg_info/dbg_info.cpp | 14 | ||||
-rw-r--r-- | library/cpp/lfalloc/dbg_info/dbg_info.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/lfalloc/dbg_info/dbg_info.cpp b/library/cpp/lfalloc/dbg_info/dbg_info.cpp index 1fb9f7ad93..7667e444a2 100644 --- a/library/cpp/lfalloc/dbg_info/dbg_info.cpp +++ b/library/cpp/lfalloc/dbg_info/dbg_info.cpp @@ -15,7 +15,7 @@ namespace NAllocDbg { int& numSizes); using TSetProfileCurrentThread = bool(bool newVal); - using TSetProfileAllThreads = bool(bool newVal); + using TSetProfileAllThreads = bool(bool newVal); using TSetAllocationSamplingEnabled = bool(bool newVal); using TSetAllocationSampleRate = size_t(size_t newVal); @@ -32,7 +32,7 @@ namespace NAllocDbg { TGetPerTagAllocInfo* GetPerTagAllocInfo = nullptr; TSetProfileCurrentThread* SetProfileCurrentThread = nullptr; - TSetProfileAllThreads* SetProfileAllThreads = nullptr; + TSetProfileAllThreads* SetProfileAllThreads = nullptr; TSetAllocationSamplingEnabled* SetAllocationSamplingEnabled = nullptr; TSetAllocationSampleRate* SetAllocationSampleRate = nullptr; @@ -51,7 +51,7 @@ namespace NAllocDbg { GetPerTagAllocInfo = (TGetPerTagAllocInfo*)mallocInfo.GetParam("GetPerTagAllocInfo"); SetProfileCurrentThread = (TSetProfileCurrentThread*)mallocInfo.GetParam("SetProfileCurrentThread"); - SetProfileAllThreads = (TSetProfileAllThreads*)mallocInfo.GetParam("SetProfileAllThreads"); + SetProfileAllThreads = (TSetProfileAllThreads*)mallocInfo.GetParam("SetProfileAllThreads"); SetAllocationSamplingEnabled = (TSetAllocationSamplingEnabled*)mallocInfo.GetParam("SetAllocationSamplingEnabled"); SetAllocationSampleRate = (TSetAllocationSampleRate*)mallocInfo.GetParam("SetAllocationSampleRate"); @@ -97,10 +97,10 @@ namespace NAllocDbg { return AllocFn.SetProfileCurrentThread ? AllocFn.SetProfileCurrentThread(newVal) : false; } - bool SetProfileAllThreads(bool newVal) { - return AllocFn.SetProfileAllThreads ? AllocFn.SetProfileAllThreads(newVal) : false; - } - + bool SetProfileAllThreads(bool newVal) { + return AllocFn.SetProfileAllThreads ? AllocFn.SetProfileAllThreads(newVal) : false; + } + bool SetAllocationSamplingEnabled(bool newVal) { return AllocFn.SetAllocationSamplingEnabled ? AllocFn.SetAllocationSamplingEnabled(newVal) : false; } diff --git a/library/cpp/lfalloc/dbg_info/dbg_info.h b/library/cpp/lfalloc/dbg_info/dbg_info.h index 071562a81a..8c6ead7180 100644 --- a/library/cpp/lfalloc/dbg_info/dbg_info.h +++ b/library/cpp/lfalloc/dbg_info/dbg_info.h @@ -1,6 +1,6 @@ #pragma once -#include <util/generic/ptr.h> +#include <util/generic/ptr.h> #include <util/system/types.h> namespace NAllocDbg { @@ -60,7 +60,7 @@ namespace NAllocDbg { // Allocation sampling could be used to collect detailed information bool SetProfileCurrentThread(bool newVal); - bool SetProfileAllThreads(bool newVal); + bool SetProfileAllThreads(bool newVal); bool SetAllocationSamplingEnabled(bool newVal); size_t SetAllocationSampleRate(size_t newVal); |