diff options
Diffstat (limited to 'src/shared_string.cc')
| -rw-r--r-- | src/shared_string.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared_string.cc b/src/shared_string.cc index 2aec6920..b594a56f 100644 --- a/src/shared_string.cc +++ b/src/shared_string.cc @@ -1,5 +1,5 @@ #include "shared_string.hh" -#include "debug.hh" +#include "buffer_utils.hh" namespace Kakoune { @@ -28,7 +28,7 @@ void StringRegistry::purge_unused() void StringRegistry::debug_stats() const { - write_debug("Shared Strings stats:"); + write_to_debug_buffer("Shared Strings stats:"); size_t total_refcount = 0; size_t total_size = 0; size_t count = m_strings.size(); @@ -37,8 +37,8 @@ void StringRegistry::debug_stats() const total_refcount += st.m_storage->refcount - 1; total_size += (int)st.m_storage->length; } - write_debug(format(" data size: {}, mean: {}", total_size, (float)total_size/count)); - write_debug(format(" refcounts: {}, mean: {}", total_refcount, (float)total_refcount/count)); + write_to_debug_buffer(format(" data size: {}, mean: {}", total_size, (float)total_size/count)); + write_to_debug_buffer(format(" refcounts: {}, mean: {}", total_refcount, (float)total_refcount/count)); } } |
