File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ using DB::current_thread;
3939thread_local std::function<void (Int64, bool )> CurrentMemoryTracker::before_alloc = nullptr ;
4040
4141thread_local std::function<void (Int64)> CurrentMemoryTracker::before_free = nullptr ;
42+ thread_local std::function<Int64()> CurrentMemoryTracker::current_memory = nullptr ;
4243
4344AllocationTrace CurrentMemoryTracker::allocImpl (Int64 size, bool throw_if_memory_exceeded)
4445{
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ struct CurrentMemoryTracker
1919
2020 static thread_local std::function<void (Int64, bool )> before_alloc;
2121 static thread_local std::function<void (Int64)> before_free;
22+ static thread_local std::function<Int64()> current_memory;
2223private:
2324 [[nodiscard]] static AllocationTrace allocImpl (Int64 size, bool throw_if_memory_exceeded);
2425};
You can’t perform that action at this time.
0 commit comments