mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-20 19:22:20 +00:00
* Add `pprof` command * Delete unused `GetWorkerPods` method --------- Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com>
19 lines
314 B
Go
19 lines
314 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pprofCmd = &cobra.Command{
|
|
Use: "pprof",
|
|
Short: "Select a Kubeshark container and open the pprof web UI in the browser",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
runPprof()
|
|
return nil
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(pprofCmd)
|
|
}
|