Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions pkg/rpcserver/rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ type server struct {
}

type Stats struct {
StatExecs *stat.Val
StatNumFuzzing *stat.Val
StatVMRestarts *stat.Val
StatModules *stat.Val
StatExecs *stat.Val
StatNumFuzzing *stat.Val
StatVMRestarts *stat.Val
StatModules *stat.Val
StatExecutorRestarts *stat.Val
}

func NewStats() Stats {
Expand All @@ -139,6 +140,8 @@ func NewNamedStats(name string) Stats {
stat.Rate{}, stat.NoGraph),
StatModules: stat.New("modules"+suffix, "Number of loaded kernel modules",
stat.NoGraph, stat.Link("/modules"+linkSuffix)),
StatExecutorRestarts: stat.New("executor restarts",
"Number of times executor process was restarted", stat.Rate{}, stat.Graph("executor")),
}
}

Expand Down Expand Up @@ -209,8 +212,7 @@ func newImpl(cfg *Config, mgr Manager) *server {
statExecRetries: stat.New("exec retries",
"Number of times a test program was restarted because the first run failed",
stat.Rate{}, stat.Graph("executor")),
statExecutorRestarts: stat.New("executor restarts",
"Number of times executor process was restarted", stat.Rate{}, stat.Graph("executor")),
statExecutorRestarts: cfg.Stats.StatExecutorRestarts,
statExecBufferTooSmall: queue.StatExecBufferTooSmall,
statExecs: cfg.Stats.StatExecs,
statNoExecRequests: queue.StatNoExecRequests,
Expand Down
Loading