Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StopProfiling = os.Getenv("SONIC_STOP_PROFILING") != ""
StopProfiling is used to stop traceback introduced by SIGPROF while native code is running. WARN: this option is only a workaround for traceback issue (https://github.com/bytedance/sonic/issues/310), and will be dropped when the issue is fixed.
View Source
var TickerInterval = time.Millisecond * 50
TickerInterval defines the interval used by the ticker in Check* functions.
Functions ¶
func CheckContext ¶
CheckContext snapshots the currently-running goroutines and returns a function to be run at the end of tests to see whether any goroutines leaked.
Types ¶
type TaskPool ¶
type TaskPool struct {
// contains filtered or unexported fields
}
func NewTaskPool ¶
Click to show internal directories.
Click to hide internal directories.