Skip to content

Commit ff472b9

Browse files
committed
pb: add procPeak measurement
1 parent 897d045 commit ff472b9

File tree

3 files changed

+56
-45
lines changed

3 files changed

+56
-45
lines changed

cmd/go-judge/grpc_executor/grpc.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ func convertPBResult(r model.Result) (*pb.Response_Result, error) {
133133
Status: pb.Response_Result_StatusType(r.Status),
134134
ExitStatus: int32(r.ExitStatus),
135135
Error: r.Error,
136-
Time: uint64(r.Time),
137-
RunTime: uint64(r.RunTime),
138-
Memory: uint64(r.Memory),
136+
Time: r.Time,
137+
RunTime: r.RunTime,
138+
Memory: r.Memory,
139+
ProcPeak: r.ProcPeak,
139140
Files: r.Buffs,
140141
FileIDs: r.FileIDs,
141142
FileError: convertPBFileError(r.FileError),

pb/response.pb.go

+51-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pb/response.proto

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ message Response {
5050
string error = 3;
5151
uint64 time = 4;
5252
uint64 runTime = 8;
53+
uint64 procPeak = 10;
5354
uint64 memory = 5;
5455
map<string, bytes> files = 6;
5556
map<string, string> fileIDs = 7;

0 commit comments

Comments
 (0)