Skip to content

Commit fd7afd4

Browse files
committed
feat: add MemUsage support
1 parent 4dcbb44 commit fd7afd4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

job_queue_rabbitmq.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type jobStatus struct {
2323
StdErr string `json:"stderr"`
2424
StdOut string `json:"stdout"`
2525
ExecDuration int `json:"exec_duration"`
26+
MemUsage int64 `json:"mem_usage"`
2627
}
2728

2829
func newJobQueue(endpoint string) jobQueue {
@@ -149,6 +150,7 @@ func (q jobQueue) setjobResult(ctx context.Context, job benchJob, res agentExecR
149150
StdErr: res.StdErr,
150151
StdOut: res.StdOut,
151152
ExecDuration: res.ExecDuration,
153+
MemUsage: res.MemUsage,
152154
}
153155
log.WithField("jobStatus", jobStatus).Info("Set job result")
154156

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type agentExecRes struct {
4141
StdErr string `json:"stderr"`
4242
StdOut string `json:"stdout"`
4343
ExecDuration int `json:"exec_duration"`
44+
MemUsage int64 `json:"mem_usage"`
4445
}
4546

4647
type runningFirecracker struct {

0 commit comments

Comments
 (0)