Skip to content

Commit

Permalink
distsql: add memory accounting and stats to windowers
Browse files Browse the repository at this point in the history
Adds memory accounting and stats collection to
windowers.

Related to: #24425.

Release note: None
  • Loading branch information
yuzefovich committed Aug 9, 2018
1 parent 9ed0086 commit fef1a65
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 43 deletions.
1 change: 1 addition & 0 deletions pkg/sql/distsqlrun/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

228 changes: 191 additions & 37 deletions pkg/sql/distsqlrun/stats.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pkg/sql/distsqlrun/stats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ message RouterOutputStats {
int64 max_allocated_mem = 2;
int64 max_allocated_disk = 3;
}

// WindowerStats are the stats collected during a windower run.
message WindowerStats {
InputStats input_stats = 1 [(gogoproto.nullable) = false];
int64 max_allocated_mem = 2;
}
Loading

0 comments on commit fef1a65

Please sign in to comment.