Skip to content

Commit

Permalink
debug window
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixYBW committed Jul 3, 2024
1 parent 72c609d commit fd92d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions velox/exec/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,11 @@ RowVectorPtr Window::getOutput() {
currentPartition_->clearOutputRows(numResultRows.second);
}
}
numBatches_++;
if (numBatches_ % 10 == 0 )
{
std::cout << this->pool()->root()->treeMemoryUsage() << std::endl;
}

return numResultRows.first < numOutputRows
? std::dynamic_pointer_cast<RowVector>(
Expand Down
1 change: 1 addition & 0 deletions velox/exec/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ class Window : public Operator {
// computePeerBuffers they are saved here.
vector_size_t peerStartRow_ = 0;
vector_size_t peerEndRow_ = 0;
uint64_t numBatches_ = 0;
};

} // namespace facebook::velox::exec

0 comments on commit fd92d7f

Please sign in to comment.