mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-12 05:50:06 +00:00
23 lines
538 B
Go
23 lines
538 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/cmd/state/stateless"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
withStatsfile(statelessChartCmd)
|
|
rootCmd.AddCommand(statelessChartCmd)
|
|
}
|
|
|
|
var statelessChartCmd = &cobra.Command{
|
|
Use: "statelessChart",
|
|
Short: "Make a chart from based on the statistics of the 'stateless' action",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
stateless.DoKVChart(statsfile, []int{21, 20, 19, 18}, fmt.Sprintf("%s-chart.png", statsfile), 2800000, 1)
|
|
return nil
|
|
},
|
|
}
|