CLI: Improved and renamed show statistics -> show memory command

Fixed shared yang-spec reference count
This commit is contained in:
Olof hagsand 2024-06-03 09:52:53 +02:00
parent 25e1bade8f
commit 8d05432e98
4 changed files with 178 additions and 59 deletions

View file

@ -3,7 +3,7 @@
See also the separate
[clixon-examples](https://github.com/clicon/clixon-examples) repo
The only Clixon example remaining is for internal testing:
The remaining Clixon example is for internal testing:
* [Main example](main/README.md)

View file

@ -123,9 +123,13 @@ show("Show a particular state of the system"){
yang("Show yang specs"), show_yang(); {
clixon-example("Show clixon-example yang spec"), show_yang("clixon-example");
}
statistics("Show statistics"), cli_show_statistics();{
brief, cli_show_statistics();
modules, cli_show_statistics("modules");
memory("Show memory usage") {
cli("Show CLI memory usage"), cli_show_statistics("cli");{
detail("Show detailed CLI memory usage"), cli_show_statistics("cli", "detail");
}
backend("Show backend memory usage"), cli_show_statistics("backend");{
detail("Show detailed backend memory usage"), cli_show_statistics("backend", "detail");
}
}
}