Documentation
¶
Index ¶
- Variables
- func CmdLinesToResp(cmds []CmdLine) []byte
- func FindBiggestKeys(rdbFilename string, topN int, output *os.File) error
- func FlameGraph(rdbFilename string, port int, separator ...string) (chan<- struct{}, error)
- func MemoryProfile(rdbFilename string, csvFilename string) error
- func ToAOF(rdbFilename string, aofFilename string) error
- func ToJsons(rdbFilename string, jsonFilename string) error
- type CmdLine
Constants ¶
This section is empty.
Variables ¶
View Source
var TrimThreshold = 1000
TrimThreshold is the min count of keys to enable trim
Functions ¶
func CmdLinesToResp ¶
CmdLinesToResp convert []CmdLine to RESP bytes
func FindBiggestKeys ¶
FindBiggestKeys read rdb file and find the largest N keys. The invoker owns output, FindBiggestKeys won't close it
func FlameGraph ¶
FlameGraph draws flamegraph in web page to analysis memory usage pattern
func MemoryProfile ¶
MemoryProfile read rdb file and analysis memory usage then write result to csv file
Types ¶
type CmdLine ¶
type CmdLine = [][]byte
CmdLine is alias for [][]byte, represents a command line
func ObjectToCmd ¶
func ObjectToCmd(obj model.RedisObject) []CmdLine
ObjectToCmd convert redis object to redis command line
Click to show internal directories.
Click to hide internal directories.