aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/slskd/Core/API/Controllers/ApplicationController.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs
index 3cf3c0a3..ac8be802 100644
--- a/src/slskd/Core/API/Controllers/ApplicationController.cs
+++ b/src/slskd/Core/API/Controllers/ApplicationController.cs
@@ -136,5 +136,15 @@ namespace slskd.Core.API
return Ok();
}
+
+ [HttpGet("dump")]
+ [Authorize]
+ public async Task<IActionResult> DumpMemory()
+ {
+ using var dumper = new Dumper();
+ var file = await dumper.DumpAsync();
+
+ return PhysicalFile(file, "application/octet-stream", "slskd.dmp");
+ }
}
}