INNER CODE UNIT · Go

err

grafana-cold-storage/phlare · ebpf/cmd/playground/main.go:39

		err := session.CollectProfiles(func(target *sd.Target, stack []string, value uint64, pid uint32) {
			fmt.Printf("%s %d\n", strings.Join(stack, ";"), value)
		})
		if err != nil {
			panic(err)
		}
	}
}

func convertSessionOptions() ebpfspy.SessionOptions {
	ms := symtab.NewMetrics(prometheus.DefaultRegisterer)
	return ebpfspy.SessionOptions{
		CollectUser:   true,
		CollectKernel: true,
		SampleRate:    11,
		CacheOptions: symtab.CacheOptions{
			PidCacheOptions: symtab.GCacheOptions{
				Size:       239,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…