mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-13 08:04:18 +00:00
avoid double unmarshalling
This commit is contained in:
parent
4afe9b1977
commit
29a8f4c09e
7 changed files with 72 additions and 17 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/pprof"
|
||||
"sync"
|
||||
|
||||
|
|
@ -62,6 +63,8 @@ func realMain() int {
|
|||
if err := pprof.StartCPUProfile(f); err != nil {
|
||||
log.Fatal("could not start CPU profile: ", err)
|
||||
}
|
||||
runtime.SetBlockProfileRate(1)
|
||||
|
||||
defer pprof.StopCPUProfile()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue