mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-20 13:18:50 -04:00
Dht perf
This commit is contained in:
parent
8194a79ce4
commit
ae154f1bed
10 changed files with 340 additions and 289 deletions
|
@ -98,6 +98,16 @@ class _DeveloperPageState extends State<DeveloperPage> {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (debugCommand == 'pool stats') {
|
||||
try {
|
||||
DHTRecordPool.instance.debugPrintStats();
|
||||
} on Exception catch (e, st) {
|
||||
_debugOut('<<< ERROR\n$e\n<<< STACK\n$st');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (debugCommand.startsWith('change_log_ignore ')) {
|
||||
final args = debugCommand.split(' ');
|
||||
if (args.length < 3) {
|
||||
|
@ -129,9 +139,10 @@ class _DeveloperPageState extends State<DeveloperPage> {
|
|||
|
||||
if (debugCommand == 'help') {
|
||||
out = 'VeilidChat Commands:\n'
|
||||
' pool allocations - List DHTRecordPool allocations\n'
|
||||
' pool opened - List opened DHTRecord instances'
|
||||
' from the pool\n'
|
||||
' pool <allocations|opened|stats>\n'
|
||||
' allocations - List DHTRecordPool allocations\n'
|
||||
' opened - List opened DHTRecord instances\n'
|
||||
' stats - Dump DHTRecordPool statistics\n'
|
||||
' change_log_ignore <layer> <changes> change the log'
|
||||
' target ignore list for a tracing layer\n'
|
||||
' targets to add to the ignore list can be separated by'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue