MCPcopy Create free account
hub / github.com/dolthub/doltgresql / HasOptions

Method HasOptions

utils/pprof.go:77–79  ·  view source on GitHub ↗

HasOptions returns true when at least one profiler target has been selected.

()

Source from the content-addressed store, hash-verified

75
76// HasOptions returns true when at least one profiler target has been selected.
77func (options ProfilingOptions) HasOptions() bool {
78 return options.CPU || options.Memory || options.Block || options.Trace
79}

Callers 2

mainFunction · 0.95
StartProfilingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected