MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / simulator_processes

Function simulator_processes

packages/server/src/api/routes.rs:1954–1973  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
)

Source from the content-addressed store, hash-verified

1952}
1953
1954async 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
1975async fn simulator_performance(
1976 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 5

is_android_idFunction · 0.85
jsonFunction · 0.85
list_processesMethod · 0.80
cloneMethod · 0.65

Tested by

no test coverage detected