optimizations

This commit is contained in:
Christien Rioux 2024-04-07 16:19:45 -04:00
parent 8335e36876
commit b7f7258c70
7 changed files with 93 additions and 51 deletions

View file

@ -69,12 +69,23 @@ class _DeveloperPageState extends State<DeveloperPage> {
}
Future<void> _sendDebugCommand(String debugCommand) async {
if (debugCommand == 'pool allocations') {
DHTRecordPool.instance.debugPrintAllocations();
return;
}
if (debugCommand == 'pool opened') {
DHTRecordPool.instance.debugPrintOpened();
return;
}
if (debugCommand == 'ellet') {
setState(() {
_showEllet = !_showEllet;
});
return;
}
_debugOut('DEBUG >>>\n$debugCommand\n');
try {
final out = await Veilid.instance.debug(debugCommand);