From 7584c41e3432a2e6d1e3a29aef0bcf48d669ba83 Mon Sep 17 00:00:00 2001 From: Dmitry Sergeev Date: Wed, 15 May 2024 18:49:50 +0400 Subject: [PATCH] WIP --- pkg/proc/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/proc/main.go b/pkg/proc/main.go index 2d4b118..dc0f0e4 100644 --- a/pkg/proc/main.go +++ b/pkg/proc/main.go @@ -1,8 +1,6 @@ package proc import ( - // "os" - "fmt" "regexp" "github.com/prometheus/procfs" @@ -87,7 +85,6 @@ func findProcessByName(regex string) ([]int, error) { func aggregateCPUTime(pids []int) (float64, error) { totalCPUTime := 0.0 for _, pid := range pids { - fmt.Printf("Cpu pid: %d\n", pid) proc, err := procfs.NewProc(pid) if err != nil { return 0, err @@ -104,7 +101,6 @@ func aggregateCPUTime(pids []int) (float64, error) { func aggregateResidentMemoryUsage(pids []int) (uint64, error) { totalMemory := uint64(0) for _, pid := range pids { - fmt.Printf("Memory pid: %d\n", pid) proc, err := procfs.NewProc(pid) if err != nil { return 0, err