[#1223] lens/tui: remove pprof
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
98215ff06b
commit
1a1aa9fc4b
2 changed files with 4 additions and 34 deletions
|
@ -23,30 +23,6 @@ func init() {
|
|||
}
|
||||
|
||||
func tuiFunc(cmd *cobra.Command, _ []string) {
|
||||
// cpuProfile, err := os.Create(fmt.Sprintf("tui-cpu-%s.prof", time.Now()))
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// defer cpuProfile.Close()
|
||||
|
||||
// err = pprof.StartCPUProfile(cpuProfile)
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// defer pprof.StopCPUProfile()
|
||||
|
||||
// memProfile, err := os.Create(fmt.Sprintf("tui-mem-%s.prof", time.Now()))
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// defer memProfile.Close()
|
||||
// defer func() {
|
||||
// err = pprof.WriteHeapProfile(memProfile)
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// }()
|
||||
|
||||
common.ExitOnErr(cmd, runTUI(cmd))
|
||||
}
|
||||
|
||||
|
|
|
@ -33,23 +33,17 @@ func (r *ObjectRecord) String() string {
|
|||
}
|
||||
|
||||
func (r *SmallRecord) String() string {
|
||||
var s string
|
||||
if r.storageID != nil {
|
||||
s = fmt.Sprintf("OID [red]%-44s[white] | Path %s", r.id, *r.storageID)
|
||||
} else {
|
||||
s = fmt.Sprintf("OID [red]%-44s[white]", r.id)
|
||||
return fmt.Sprintf("OID [red]%-44s[white] | %s", r.id, *r.storageID)
|
||||
}
|
||||
return s
|
||||
return fmt.Sprintf("OID [red]%-44s[white] |", r.id)
|
||||
}
|
||||
|
||||
func (r *RootRecord) String() string {
|
||||
var s string
|
||||
if r.info != nil {
|
||||
s = fmt.Sprintf("Root OID [red]%-44s[white] | Split info {...}", r.id)
|
||||
} else {
|
||||
s = fmt.Sprintf("Root OID [red]%-44s[white]", r.id)
|
||||
return fmt.Sprintf("Root OID [red]%-44s[white] | Split info {...}", r.id)
|
||||
}
|
||||
return s
|
||||
return fmt.Sprintf("Root OID [red]%-44s[white]", r.id)
|
||||
}
|
||||
|
||||
func (r *OwnerRecord) String() string {
|
||||
|
|
Loading…
Reference in a new issue