Merge pull request #1542 from LeoHChen/fix_broken_build_on_mac

fix broken build on Mac OS
pull/1604/head
Leo Chen 5 years ago committed by GitHub
commit 94e5aef839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      internal/profiler/profiler.go

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

Loading…
Cancel
Save