Versions in this module Expand all Collapse all v0 v0.5.0 Jul 24, 2026 Changes in this version type Measurement + CPU float64 + type Process struct + Bytes int64 + CPU float64 + Command string + PID int + func MeasureProcesses(ctx context.Context, udid string) ([]Process, error) + type TopOutput struct + Sims []TopSim + TotalBytes int64 + func FleetSnapshot(ctx context.Context, withDisk bool) (TopOutput, error) + type TopProcesses struct + Name string + Processes []Process + TotalBytes int64 + UDID string + type TopSim struct + DiskBytes *int64 + ManagedDisabled *int + ManagedTotal int + Memory *Measurement + MemoryError string + StatusError string v0.4.0 Jul 23, 2026 Changes in this version + const ShutdownTimeout + var BootTimeout = 10 * time.Minute + var Categories = []Category + var DiskCleanupCategories = []DiskCleanupCategory + var Features = []Feature + func BootAndWait(ctx context.Context, set, udid string) error + func CloneDevice(ctx context.Context, udid, name string) (newUDID string, err error) + func DeleteDevice(ctx context.Context, udid string) error + func DisableSlim(ctx context.Context, set, udid string, report Reporter) (bool, error) + func EnableSlim(ctx context.Context, set, udid string, p Profile, report Reporter) (bool, error) + func EraseDevice(ctx context.Context, udid string) error + func ExtraDeviceSetTokens() []string + func MarshalProfile(sp SlimProfile) ([]byte, error) + func MeasureMany(ctx context.Context, udids []string) (map[string]Measurement, map[string]string) + func NormalizeSimulatorName(name string) (string, error) + func ProfileFileName(name string) string + func RegisterDeviceSet(value string) + func RenameDevice(ctx context.Context, udid, name string) error + func ResetDeviceSets() + func Shutdown(ctx context.Context, set, udid string) error + func SlimmableSet() map[string]bool + func SplitList(s string) []string + func ValidateDiskCleanupSelection(ids []string) ([]string, error) + func WaitShutdown(ctx context.Context, set, udid string, timeout time.Duration) error + type AlwaysEnabledService struct + Label string + Reason string + type Category struct + AlwaysEnabled []AlwaysEnabledService + ApproxMemoryMB int + Description string + Downside string + ID string + Labels []string + Name string + ServiceDescriptions map[string]string + func CategoryByID(id string) (Category, bool) + type Device struct + DataPath string + Name string + OSVersion string + Set string + State string + UDID string + func FindDevice(ctx context.Context, udid, set string) (Device, error) + func ListDevices(ctx context.Context) ([]Device, error) + type DeviceSummary struct + ManagedDisabled *int + ManagedTotal int + Memory *Measurement + MemoryError string + StatusError string + type DiskCleanupCategory struct + CanClean bool + DefaultSelected bool + Description string + Downside string + ID string + Name string + Recovery string + Risk string + type DiskCleanupCategoryMeasurement struct + Bytes int64 + Targets int + type DiskCleanupPlan struct + Categories []DiskCleanupCategoryMeasurement + CleanableBytes int64 + Storage []DiskStorageMeasurement + TotalBytes int64 + UDID string + func PlanDiskCleanup(ctx context.Context, udid string) (DiskCleanupPlan, error) + type DiskCleanupResult struct + AfterBytes int64 + BeforeBytes int64 + BootStateRestored bool + CategoryIDs []string + ReclaimedBytes int64 + UDID string + WasBooted bool + func CleanDeviceDisk(ctx context.Context, udid string, categoryIDs []string, preserveBootState bool) (DiskCleanupResult, error) + type DiskMeasurement struct + Bytes int64 + func DeviceDiskUsage(ctx context.Context, udid string) (DiskMeasurement, error) + type DiskStorageMeasurement struct + Bytes int64 + Description string + ID string + Name string + type DoctorOutput struct + Features []FeatureStatus + OK bool + UDID string + func DiagnoseFeatures(features []Feature, disabled map[string]bool) DoctorOutput + type DroppedCategory struct + Downside string + ID string + Labels []string + Name string + func DroppedCategories(disabled map[string]bool) []DroppedCategory + type Feature struct + ID string + Labels []string + Name string + func ResolveFeatures(ids []string) ([]Feature, error) + type FeatureStatus struct + Disabled []string + ID string + Name string + OK bool + type Measurement struct + Bytes int64 + Processes int + func Measure(ctx context.Context, udid string) (Measurement, error) + type Profile struct + ExceptCategories map[string]bool + Keep map[string]bool + func BuildProfile(profilePath, except, keep string) (Profile, error) + func LoadSlimProfile(path string) (Profile, error) + func (p Profile) Desired() map[string]bool + type Reporter func(string) + type SimulatorMutationOutput struct + Action string + Name string + SourceUDID string + UDID string + type SlimProfile struct + Description string + Except []string + Keep []string + Name string + type Status struct + Booted bool + ManagedDisabled int + ManagedTotal int + func ReadStatus(ctx context.Context, udid string) (Status, map[string]bool, error) + func ReadStatusForDevice(ctx context.Context, d Device) (Status, map[string]bool, error) + type StatusOutput struct + Dropped []DroppedCategory + Verdict string v0.3.0 Jul 22, 2026 v0.2.0 Jul 21, 2026 v0.1.0 Jul 20, 2026