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

Function service_performance_json

packages/server/src/main/service_client.rs:29–42  ·  view source on GitHub ↗
(
    server_url: &str,
    udid: &str,
    pid: Option<i32>,
)

Source from the content-addressed store, hash-verified

27}
28
29fn 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
44fn service_post_sample(
45 server_url: &str,

Callers 2

mainFunction · 0.85
run_stats_watchFunction · 0.85

Calls 1

service_get_jsonFunction · 0.85

Tested by

no test coverage detected