-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathstats.proto
45 lines (42 loc) · 1.73 KB
/
stats.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
syntax = "proto3";
package cockroach.sql.execpb;
option go_package = "execpb";
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
// VectorizedStats represents the stats collected from an operator.
message VectorizedStats {
int32 id = 1 [(gogoproto.customname) = "ID"];
// num_batches is the number of batches that this stats collector observed its
// operator to output.
int64 num_batches = 2;
// num_tuples is the number of tuples that this stats collector received
// from its input.
int64 num_tuples = 3;
google.protobuf.Duration time = 4 [(gogoproto.nullable) = false,
(gogoproto.stdduration) = true];
// io indicates whether time contains IO or execution time.
bool io = 5 [(gogoproto.customname) = "IO"];
int64 max_allocated_mem = 6;
int64 max_allocated_disk = 7;
// bytes_read is the number of bytes read from the disk. It is set only when
// io is true.
int64 bytes_read = 8;
// rows_read is the number of rows read from the disk. It is set only when
// io is true.
int64 rows_read = 9;
// on_stream indicates whether the stats are shown on a stream. This decides
// if network latency should be shown or not.
bool on_stream = 10;
// network_latency is the latency time in nanoseconds between outbox and inbox.
// It is set only when on_stream is true.
int64 network_latency = 11;
}