MCPcopy Index your code
hub / github.com/bytebase/bytebase / NewMemoryMonitor

Function NewMemoryMonitor

backend/runner/monitor/monitor.go:33–37  ·  view source on GitHub ↗
(profile *config.Profile)

Source from the content-addressed store, hash-verified

31}
32
33func NewMemoryMonitor(profile *config.Profile) *MemoryMonitor {
34 return &MemoryMonitor{
35 profile: profile,
36 }
37}
38
39func (mm *MemoryMonitor) Run(ctx context.Context, wg *sync.WaitGroup) {
40 ticker := time.NewTicker(monitorInterval)

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected