Skip to content

Commit

Permalink
chore: add main process ID to MetricStats()
Browse files Browse the repository at this point in the history
  • Loading branch information
fufuok committed Dec 6, 2024
1 parent 4da9f0f commit 3e0bfe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func MainStats() map[string]any {
return nil
}
return map[string]any{
"ProcessPid": mainProcess.Pid,
"NumThreads": numThreads,
"MemPercent": utils.Round(float64(memPercent), 2),
"CPUPercent": utils.Round(cpuPercent, 2),
Expand Down

0 comments on commit 3e0bfe8

Please sign in to comment.