MCPcopy Create free account
hub / github.com/acking-you/static_flow / admin_reset_memory_profiler

Function admin_reset_memory_profiler

crates/frontend/src/api.rs:3959–3977  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3957}
3958
3959pub async fn admin_reset_memory_profiler() -> Result<(), String> {
3960 #[cfg(feature = "mock")]
3961 {
3962 Ok(())
3963 }
3964
3965 #[cfg(not(feature = "mock"))]
3966 {
3967 let url = format!("{}/admin/runtime/memory/reset", admin_base());
3968 let response = api_post(&url)
3969 .send()
3970 .await
3971 .map_err(|e| format!("Network error: {:?}", e))?;
3972 if !response.ok() {
3973 return Err(format!("HTTP error: {}", response.status()));
3974 }
3975 Ok(())
3976 }
3977}
3978
3979pub async fn admin_update_memory_profiler_config(
3980 config: &MemoryProfilerConfigUpdate,

Callers 1

admin_pageFunction · 0.50

Calls 2

api_postFunction · 0.85
okMethod · 0.80

Tested by

no test coverage detected