Documentation
¶
Index ¶
- func AddFlags(rootCmd *cobra.Command)
- func GetLogger(params *Params, dir string) *log.Logger
- func HandleProfMem(logger *log.Logger, p *Params)
- func RootCmd(fn RootFn) *cobra.Command
- func StartCpuProfile(logger *log.Logger, p *Params) func()
- func StartCpuProfileSrv(ctx context.Context, logger *log.Logger, p *Params)
- type LogReaderEntry
- type LogReaderEntryPtr
- type LogReaderKind
- type MachAddress
- type MachTime
- type MsgSchemaParsed
- type MsgTxParsed
- type Params
- type RootFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleProfMem ¶
func StartCpuProfile ¶
Types ¶
type LogReaderEntry ¶
type LogReaderEntry struct {
Kind LogReaderKind
// states are empty for logReaderWhenQueue
States []int
// CreatedAt is machine time when this entry was created
CreatedAt uint64
// ClosedAt is human time when this entry was closed, so it can be disposed.
ClosedAt time.Time
// Pipe is for logReaderPipeIn, logReaderPipeOut
Pipe am.MutationType
// Mach is for logReaderPipeIn, logReaderPipeOut, logReaderMention
Mach string
// Ticks is for logReaderWhenTime only
Ticks am.Time
// Args is for logReaderWhenArgs only
Args string
// QueueTick is for logReaderWhenQueue only
QueueTick int
}
type LogReaderEntryPtr ¶
type LogReaderKind ¶
type LogReaderKind int
const ( LogReaderCtx LogReaderKind = iota + 1 LogReaderWhen LogReaderWhenNot LogReaderWhenTime LogReaderWhenArgs LogReaderWhenQueue LogReaderPipeIn LogReaderPipeOut )
type MachAddress ¶
type MachAddress struct {
MachId string
TxId string
MachTime uint64
HumanTime time.Time
// TODO support step
Step int
// TODO support queue ticks
QueueTick uint64
}
func ParseMachUrl ¶
func ParseMachUrl(u string) (*MachAddress, error)
func (*MachAddress) Clone ¶
func (a *MachAddress) Clone() *MachAddress
func (*MachAddress) String ¶
func (a *MachAddress) String() string
type MsgTxParsed ¶
type MsgTxParsed struct {
StatesAdded []int
StatesRemoved []int
StatesTouched []int
// TimeSum is machine time after this transition.
TimeSum uint64
TimeDiff uint64
ReaderEntries []*LogReaderEntryPtr
// Transitions which reported this one as their source
Forks []MachAddress
ForksLabels []string
// QueueTick when this tx should be executed
ResultTick uint64
}
type Params ¶
type Params struct {
// LogLevel is the log level of this instance (for debugging).
LogLevel am.LogLevel
// Id is the ID of this asyncmachine (for debugging).
Id string
Version bool
ListenAddr string
DebugAddr string
RaceDetector bool
ImportData string
EnableMouse bool
UiSsh bool
EnableClipboard bool
CleanOnConnect bool
SelectConnected bool
ProfMem bool
ProfCpu bool
ProfSrv string
MaxMemMb int
LogOpsTtl time.Duration
ViewReader bool
FwdData []string
StartupMachine string
StartupView string
StartupTx int
StartupGroup string
ViewNarrow bool
ViewRain bool
FilterGroup bool
FilterLogLevel am.LogLevel
OutputDir string
OutputDiagrams int
UiWeb bool
OutputClients bool
ViewTimelines int
Rain bool
TailMode bool
OutputTx bool
MachUrl string
OutputLog bool
}
Click to show internal directories.
Click to hide internal directories.