This commit is contained in:
2020-06-03 23:30:16 +00:00
parent a139224de7
commit 5adf4aabcf
2 changed files with 11 additions and 5 deletions

View File

@@ -49,9 +49,17 @@ namespace AyaNova.Api.Controllers
serverState = apiServerState;
}
#if (DEBUG)
[HttpGet("collect")]
public ActionResult GetCollect()
{
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
return Ok();
}
#endif
/// <summary>
/// Get Memory and CPU server metrics for time period specified