Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PauseGCAndScheduler ¶
func PauseGCAndScheduler(ctx context.Context, cfg *PauseGcConfig) error
PauseGCAndScheduler blocks the current goroutine and pause the GC safepoint and remove the scheduler by the config. This function will block until the context being canceled.
Types ¶
type PauseGcConfig ¶
type PauseGcConfig struct { task.Config SafePoint uint64 `json:"safepoint" yaml:"safepoint"` TTL time.Duration `json:"ttl" yaml:"ttl"` }
func (*PauseGcConfig) ParseFromFlags ¶
func (cfg *PauseGcConfig) ParseFromFlags(flags *pflag.FlagSet) error
ParseFromFlags fills the config via the flags.
Click to show internal directories.
Click to hide internal directories.