HostTime confiures a CPU time profiler to account for time spent in calls to host functions. Default to false.
(enable bool)
| 38 | // |
| 39 | // Default to false. |
| 40 | func 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. |