You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resolver_pprof.go
    path of file: ./repos/pyroscope/pkg/phlaredb/symdb
    
    the code of the file until where you have to start completion: package symdb

import (
	googlev1 "github.com/grafana/pyroscope/api/gen/proto/go/google/v1"
	schemav1 "github.com/grafana/pyroscope/pkg/phlaredb/schemas/v1"
	"github.com/grafana/pyroscope/pkg/slices"
)

type pprofProtoSymbols struct {
	profile googlev1.Profile
	symbols *Symbols
	samples *schemav1.Samples
	lut     []uint32
	cur     int
}

func (r *pprofProtoSymbols) init(symbols *Symbols, samples schemav1.Samples) {
	r.symbols = symbols
	r.samples = &samples
	r.profile.Sample = make([]*googlev1.Sample, samples.Len())
}

func (r 
    
func copyStrings(profile *googlev1.Profile, symbols *Symbols, lut []uint32) {
	profile.StringTable = make([]string, len(symbols.Strings))
	for _, m := range profile.Mapping {
		profile.StringTable[m.Filename] = symbols.Strings[m.Filename]
		profile.StringTable[m.BuildId] = symbols.Strings[m.BuildId]
	}
	for _, f := range profile.Function {
		profile.StringTable[f.Name] = symbols.Strings[f.Name]
		profile.StringTable[f.Filename] = symbols.Strings[f.Filename]
		profile.StringTable[f.SystemName] = symbols.Strings[f.SystemName]
	}
	n := len(profile.StringTable)
	lut = slices.GrowLen(lut, n)
	var j int
	for i := 0; i < len(profile.StringTable); i++ {
		s := profile.StringTable[i]
		if s == "" && i > 0 {
			continue
		}
		lut[i] = uint32(j)
		profile.StringTable[j] = s
		j++
	}
	profile.StringTable = profile.StringTable[:j]
	for _, m := range profile.Mapping {
		m.Filename = int64(lut[m.Filename])
		m.BuildId = int64(lut[m.BuildId])
	}
	for _, f := range profile.Function {
		f.Name = int64(lut[f.Name])
		f.Filename = int64(lut[f.Filename])
		f.SystemName = int64(lut[f.SystemName])
	}
}