From 717264b4523d83e54b807ec70b6aeef7ecb0c8ac Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 27 Feb 2024 12:02:51 -0800 Subject: [PATCH] Remove show memory for skip list for now --- SkipList.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/SkipList.cpp b/SkipList.cpp index e55619a..fdacce3 100644 --- a/SkipList.cpp +++ b/SkipList.cpp @@ -658,23 +658,6 @@ ConflictSet::~ConflictSet() { } } -#if SHOW_MEMORY -__attribute__((visibility("default"))) void showMemory(const ConflictSet &cs) { - ConflictSet::Impl *impl; - memcpy(&impl, &cs, sizeof(impl)); // NOLINT - fprintf(stderr, "Max Node1 memory usage: %" PRId64 "\n", - impl->allocators.node1.highWaterMarkBytes()); - fprintf(stderr, "Max Node4 memory usage: %" PRId64 "\n", - impl->allocators.node4.highWaterMarkBytes()); - fprintf(stderr, "Max Node16 memory usage: %" PRId64 "\n", - impl->allocators.node16.highWaterMarkBytes()); - fprintf(stderr, "Max Node48 memory usage: %" PRId64 "\n", - impl->allocators.node48.highWaterMarkBytes()); - fprintf(stderr, "Max Node256 memory usage: %" PRId64 "\n", - impl->allocators.node256.highWaterMarkBytes()); -} -#endif - ConflictSet::ConflictSet(ConflictSet &&other) noexcept : impl(std::exchange(other.impl, nullptr)) {}