(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 1952 | } |
| 1953 | |
| 1954 | async fn simulator_processes( |
| 1955 | State(state): State<AppState>, |
| 1956 | Path(udid): Path<String>, |
| 1957 | ) -> Result<Json<Value>, AppError> { |
| 1958 | if android::is_android_id(&udid) { |
| 1959 | return Err(AppError::bad_request( |
| 1960 | "Performance gauges are only supported for iOS simulators.", |
| 1961 | )); |
| 1962 | } |
| 1963 | let foreground = performance_foreground_process(&state, &udid).await; |
| 1964 | let processes = state |
| 1965 | .performance |
| 1966 | .list_processes(&udid, foreground.clone()) |
| 1967 | .await?; |
| 1968 | Ok(json(json_value!({ |
| 1969 | "udid": udid, |
| 1970 | "foregroundProcess": foreground, |
| 1971 | "processes": processes, |
| 1972 | }))) |
| 1973 | } |
| 1974 | |
| 1975 | async fn simulator_performance( |
| 1976 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected