(
server_url: &str,
udid: &str,
pid: Option<i32>,
)
| 27 | } |
| 28 | |
| 29 | fn service_performance_json( |
| 30 | server_url: &str, |
| 31 | udid: &str, |
| 32 | pid: Option<i32>, |
| 33 | ) -> anyhow::Result<Value> { |
| 34 | let mut path = format!( |
| 35 | "/api/simulators/{}/performance?windowMs=120000", |
| 36 | url_path_component(udid) |
| 37 | ); |
| 38 | if let Some(pid) = pid { |
| 39 | path.push_str(&format!("&pid={pid}")); |
| 40 | } |
| 41 | service_get_json(server_url, &path) |
| 42 | } |
| 43 | |
| 44 | fn service_post_sample( |
| 45 | server_url: &str, |
no test coverage detected