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

Function metrics

packages/server/src/api/routes.rs:1030–1039  ·  view source on GitHub ↗
(State(state): State<AppState>)

Source from the content-addressed store, hash-verified

1028}
1029
1030async fn metrics(State(state): State<AppState>) -> Json<Value> {
1031 let mut snapshot = json_value!(state.metrics.snapshot());
1032 if let Some(object) = snapshot.as_object_mut() {
1033 object.insert(
1034 "encoders".to_owned(),
1035 json_value!(state.registry.encoder_snapshots()),
1036 );
1037 }
1038 json(snapshot)
1039}
1040
1041async fn webkit_targets(
1042 Path(udid): Path<String>,

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected