package runtime
type lockRank int
const (
lockRankUnknown lockRank = iota
lockRankSysmon
lockRankScavenge
lockRankForcegc
lockRankDefer
lockRankSweepWaiters
lockRankAssistQueue
lockRankSweep
lockRankPollDesc
lockRankCpuprof
lockRankSched
lockRankAllg
lockRankAllp
lockRankTimers
lockRankNetpollInit
lockRankHchan
lockRankNotifyList
lockRankSudog
lockRankRwmutexW
lockRankRwmutexR
lockRankRoot
lockRankItab
lockRankReflectOffs
lockRankUserArenaState
lockRankTraceBuf
lockRankTraceStrings
lockRankFin
lockRankSpanSetSpine
lockRankMspanSpecial
lockRankGcBitsArenas
lockRankProfInsert
lockRankProfBlock
lockRankProfMemActive
lockRankProfMemFuture
lockRankGscan
lockRankStackpool
lockRankStackLarge
lockRankHchanLeaf
lockRankWbufSpans
lockRankMheap
lockRankMheapSpecial
lockRankGlobalAlloc
lockRankTrace
lockRankTraceStackTab
lockRankPanic
lockRankDeadlock
lockRankRaceFini
)
const lockRankLeafRank lockRank = 1000
var lockNames = []string {
lockRankSysmon : "sysmon" ,
lockRankScavenge : "scavenge" ,
lockRankForcegc : "forcegc" ,
lockRankDefer : "defer" ,
lockRankSweepWaiters : "sweepWaiters" ,
lockRankAssistQueue : "assistQueue" ,
lockRankSweep : "sweep" ,
lockRankPollDesc : "pollDesc" ,
lockRankCpuprof : "cpuprof" ,
lockRankSched : "sched" ,
lockRankAllg : "allg" ,
lockRankAllp : "allp" ,
lockRankTimers : "timers" ,
lockRankNetpollInit : "netpollInit" ,
lockRankHchan : "hchan" ,
lockRankNotifyList : "notifyList" ,
lockRankSudog : "sudog" ,
lockRankRwmutexW : "rwmutexW" ,
lockRankRwmutexR : "rwmutexR" ,
lockRankRoot : "root" ,
lockRankItab : "itab" ,
lockRankReflectOffs : "reflectOffs" ,
lockRankUserArenaState : "userArenaState" ,
lockRankTraceBuf : "traceBuf" ,
lockRankTraceStrings : "traceStrings" ,
lockRankFin : "fin" ,
lockRankSpanSetSpine : "spanSetSpine" ,
lockRankMspanSpecial : "mspanSpecial" ,
lockRankGcBitsArenas : "gcBitsArenas" ,
lockRankProfInsert : "profInsert" ,
lockRankProfBlock : "profBlock" ,
lockRankProfMemActive : "profMemActive" ,
lockRankProfMemFuture : "profMemFuture" ,
lockRankGscan : "gscan" ,
lockRankStackpool : "stackpool" ,
lockRankStackLarge : "stackLarge" ,
lockRankHchanLeaf : "hchanLeaf" ,
lockRankWbufSpans : "wbufSpans" ,
lockRankMheap : "mheap" ,
lockRankMheapSpecial : "mheapSpecial" ,
lockRankGlobalAlloc : "globalAlloc" ,
lockRankTrace : "trace" ,
lockRankTraceStackTab : "traceStackTab" ,
lockRankPanic : "panic" ,
lockRankDeadlock : "deadlock" ,
lockRankRaceFini : "raceFini" ,
}
func (rank lockRank ) String () string {
if rank == 0 {
return "UNKNOWN"
}
if rank == lockRankLeafRank {
return "LEAF"
}
if rank < 0 || int (rank ) >= len (lockNames ) {
return "BAD RANK"
}
return lockNames [rank ]
}
var lockPartialOrder [][]lockRank = [][]lockRank {
lockRankSysmon : {},
lockRankScavenge : {lockRankSysmon },
lockRankForcegc : {lockRankSysmon },
lockRankDefer : {},
lockRankSweepWaiters : {},
lockRankAssistQueue : {},
lockRankSweep : {},
lockRankPollDesc : {},
lockRankCpuprof : {},
lockRankSched : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof },
lockRankAllg : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched },
lockRankAllp : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched },
lockRankTimers : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllp , lockRankTimers },
lockRankNetpollInit : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllp , lockRankTimers },
lockRankHchan : {lockRankSysmon , lockRankScavenge , lockRankSweep , lockRankHchan },
lockRankNotifyList : {},
lockRankSudog : {lockRankSysmon , lockRankScavenge , lockRankSweep , lockRankHchan , lockRankNotifyList },
lockRankRwmutexW : {},
lockRankRwmutexR : {lockRankSysmon , lockRankRwmutexW },
lockRankRoot : {},
lockRankItab : {},
lockRankReflectOffs : {lockRankItab },
lockRankUserArenaState : {},
lockRankTraceBuf : {lockRankSysmon , lockRankScavenge },
lockRankTraceStrings : {lockRankSysmon , lockRankScavenge , lockRankTraceBuf },
lockRankFin : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankSpanSetSpine : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankMspanSpecial : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankGcBitsArenas : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankMspanSpecial },
lockRankProfInsert : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankProfBlock : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankProfMemActive : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings },
lockRankProfMemFuture : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankHchan , lockRankNotifyList , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankProfMemActive },
lockRankGscan : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture },
lockRankStackpool : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan },
lockRankStackLarge : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan },
lockRankHchanLeaf : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankHchanLeaf },
lockRankWbufSpans : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan },
lockRankMheap : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankStackpool , lockRankStackLarge , lockRankWbufSpans },
lockRankMheapSpecial : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankStackpool , lockRankStackLarge , lockRankWbufSpans , lockRankMheap },
lockRankGlobalAlloc : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankStackpool , lockRankStackLarge , lockRankWbufSpans , lockRankMheap , lockRankMheapSpecial },
lockRankTrace : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankStackpool , lockRankStackLarge , lockRankWbufSpans , lockRankMheap },
lockRankTraceStackTab : {lockRankSysmon , lockRankScavenge , lockRankForcegc , lockRankDefer , lockRankSweepWaiters , lockRankAssistQueue , lockRankSweep , lockRankPollDesc , lockRankCpuprof , lockRankSched , lockRankAllg , lockRankAllp , lockRankTimers , lockRankNetpollInit , lockRankHchan , lockRankNotifyList , lockRankSudog , lockRankRwmutexW , lockRankRwmutexR , lockRankRoot , lockRankItab , lockRankReflectOffs , lockRankUserArenaState , lockRankTraceBuf , lockRankTraceStrings , lockRankFin , lockRankSpanSetSpine , lockRankMspanSpecial , lockRankGcBitsArenas , lockRankProfInsert , lockRankProfBlock , lockRankProfMemActive , lockRankProfMemFuture , lockRankGscan , lockRankStackpool , lockRankStackLarge , lockRankWbufSpans , lockRankMheap , lockRankTrace },
lockRankPanic : {},
lockRankDeadlock : {lockRankPanic , lockRankDeadlock },
lockRankRaceFini : {lockRankPanic },
}
The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .