You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/lotus-shed/state-stats.go
+81-12Lines changed: 81 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,7 @@ var statSnapshotCmd = &cli.Command{
360
360
Flags: []cli.Flag{
361
361
&cli.StringFlag{
362
362
Name: "tipset",
363
-
Usage: "specify tipset to call method on (pass comma separated array of cids)",
363
+
Usage: "specify tipset to call method on (pass comma separated array of cids or @<height> to specify tipset by height)",
364
364
},
365
365
&cli.IntFlag{
366
366
Name: "workers",
@@ -618,11 +618,19 @@ The top level stats reported for an actor is computed independently of all field
618
618
accounting of the true size of the actor in the state datastore.
619
619
620
620
The calculation of these stats results in the actor state being traversed twice. The dag-cache-size flag can be used
621
-
to reduce the number of decode operations performed by caching the decoded object after first access.`,
621
+
to reduce the number of decode operations performed by caching the decoded object after first access.
622
+
623
+
When using the diff-tipset flag, the stats output will only include the mutated state between the two tipsets, not
624
+
the total state of the actor in either tipset.
625
+
`,
622
626
Flags: []cli.Flag{
623
627
&cli.StringFlag{
624
628
Name: "tipset",
625
-
Usage: "specify tipset to call method on (pass comma separated array of cids)",
629
+
Usage: "specify tipset to call method on (pass comma separated array of cids or @<height> to specify tipset by height)",
630
+
},
631
+
&cli.StringFlag{
632
+
Name: "diff-tipset",
633
+
Usage: "specify tipset to diff against, stat output will include only the mutated state between the two tipsets (pass comma separated array of cids or @<height> to specify tipset by height)",
626
634
},
627
635
&cli.IntFlag{
628
636
Name: "workers",
@@ -688,12 +696,12 @@ to reduce the number of decode operations performed by caching the decoded objec
0 commit comments