MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / HostTime

Function HostTime

cpu.go:40–42  ·  view source on GitHub ↗

HostTime confiures a CPU time profiler to account for time spent in calls to host functions. Default to false.

(enable bool)

Source from the content-addressed store, hash-verified

38//
39// Default to false.
40func HostTime(enable bool) CPUProfilerOption {
41 return func(p *CPUProfiler) { p.host = enable }
42}
43
44// TimeFunc configures the time function used by the CPU profiler to collect
45// monotonic timestamps.

Callers 1

runMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected