(profileName, wasmName, path string, prof *profile.Profile)
| 291 | } |
| 292 | |
| 293 | func 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 | |
| 302 | func createFSConfig(mounts []string) wazero.FSConfig { |
| 303 | fs := wazero.NewFSConfig() |