Skip to content

Commit

Permalink
mem_tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryange committed Sep 23, 2024
1 parent 71ba5c0 commit 4be18aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ std::string LocalExchangeSourceLocalState::debug_string(int indentation_level) c
size_t i = 0;
fmt::format_to(debug_string_buffer, ", MemTrackers: ");
for (auto* mem_tracker : _shared_state->mem_trackers) {
fmt::format_to(debug_string_buffer, "{}: {}, ", i, mem_tracker->consumption());
if (mem_tracker) {
fmt::format_to(debug_string_buffer, "{}: {}, ", i, mem_tracker->consumption());
}
i++;
}
return fmt::to_string(debug_string_buffer);
Expand Down

0 comments on commit 4be18aa

Please sign in to comment.