We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
experimental.FunctionListenerFactoryKey
experimental.WithFunctionListenerFactory
1 parent 2187e44 commit 06c9f99Copy full SHA for 06c9f99
internal/e2e/profiler/profiler.go
@@ -58,8 +58,9 @@ func main() {
58
p := wzprof.ProfilingFor(guestBin)
59
cpu := p.CPUProfiler()
60
mem := p.MemoryProfiler()
61
- ctx := context.WithValue(context.Background(),
62
- experimental.FunctionListenerFactoryKey{},
+
+ ctx := experimental.WithFunctionListenerFactory(
63
+ context.Background(),
64
experimental.MultiFunctionListenerFactory(
65
wzprof.Sample(sampleRate, cpu),
66
wzprof.Sample(sampleRate, mem),
0 commit comments