mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 12:56:46 +00:00
Migrate leak related structs to leak package
This commit is contained in:
@@ -15,13 +15,12 @@ var leakOpts = struct {
|
||||
// leakCmd represents the leak command
|
||||
var leakCmd = &cobra.Command{
|
||||
Use: "leak [flags] <dump-A> <dump-B> <dump-C>",
|
||||
Short: "Find objects which are likely leaked memory.",
|
||||
Short: "Find objects which are likely leaked memory",
|
||||
Long: `Find objects which are likely leaked memory.
|
||||
|
||||
Compares the objects in three different dumps (A, B, C), to identify which
|
||||
objects are present in both B and C, and not present in A.`,
|
||||
|
||||
// Args: cobra.ExactArgs(3),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) != 3 {
|
||||
usage_er(cmd, fmt.Sprintf("requires 3 args, received %d", len(args)))
|
||||
|
||||
Reference in New Issue
Block a user