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

Function writeProfile

cmd/wzprof/main.go:293–300  ·  view source on GitHub ↗
(profileName, wasmName, path string, prof *profile.Profile)

Source from the content-addressed store, hash-verified

291}
292
293func writeProfile(profileName, wasmName, path string, prof *profile.Profile) {
294 m := &profile.Mapping{ID: 1, File: wasmName}
295 prof.Mapping = []*profile.Mapping{m}
296 stdout.Printf("writing guest %s profile to %s", profileName, path)
297 if err := wzprof.WriteProfile(path, prof); err != nil {
298 stderr.Print("writing profile:", err)
299 }
300}
301
302func createFSConfig(mounts []string) wazero.FSConfig {
303 fs := wazero.NewFSConfig()

Callers 1

runMethod · 0.85

Calls 1

WriteProfileFunction · 0.92

Tested by

no test coverage detected