|
|
@ -3,6 +3,7 @@ package profiler |
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"bytes" |
|
|
|
"bytes" |
|
|
|
"encoding/json" |
|
|
|
"encoding/json" |
|
|
|
|
|
|
|
"fmt" |
|
|
|
"net/http" |
|
|
|
"net/http" |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
"sync" |
|
|
|
"sync" |
|
|
@ -48,7 +49,7 @@ func (profiler *Profiler) LogMemory() { |
|
|
|
memMap, _ := profiler.proc.MemoryMaps(false) |
|
|
|
memMap, _ := profiler.proc.MemoryMaps(false) |
|
|
|
loggedMemMap := "" |
|
|
|
loggedMemMap := "" |
|
|
|
for _, mems := range *memMap { |
|
|
|
for _, mems := range *memMap { |
|
|
|
loggedMemMap += mems.String() + "; " |
|
|
|
loggedMemMap = fmt.Sprintf("%v; %v", loggedMemMap, mems) |
|
|
|
} |
|
|
|
} |
|
|
|
utils.Logger().Info(). |
|
|
|
utils.Logger().Info(). |
|
|
|
Str("info", info.String()). |
|
|
|
Str("info", info.String()). |
|
|
|