Skip to content

Commit

Permalink
feat: add MemUsage support
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 21, 2021
1 parent 4dcbb44 commit fd7afd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions job_queue_rabbitmq.go
Expand Up @@ -23,6 +23,7 @@ type jobStatus struct {
StdErr string `json:"stderr"`
StdOut string `json:"stdout"`
ExecDuration int `json:"exec_duration"`
MemUsage int64 `json:"mem_usage"`
}

func newJobQueue(endpoint string) jobQueue {
Expand Down Expand Up @@ -149,6 +150,7 @@ func (q jobQueue) setjobResult(ctx context.Context, job benchJob, res agentExecR
StdErr: res.StdErr,
StdOut: res.StdOut,
ExecDuration: res.ExecDuration,
MemUsage: res.MemUsage,
}
log.WithField("jobStatus", jobStatus).Info("Set job result")

Expand Down
1 change: 1 addition & 0 deletions main.go
Expand Up @@ -41,6 +41,7 @@ type agentExecRes struct {
StdErr string `json:"stderr"`
StdOut string `json:"stdout"`
ExecDuration int `json:"exec_duration"`
MemUsage int64 `json:"mem_usage"`
}

type runningFirecracker struct {
Expand Down

0 comments on commit fd7afd4

Please sign in to comment.