list resolver caches in memory-usage admin cmd
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
89e3d17e65
commit
9cd25db955
1 changed files with 5 additions and 1 deletions
|
@ -203,6 +203,8 @@ impl Services<'_> {
|
||||||
.lock()
|
.lock()
|
||||||
.await
|
.await
|
||||||
.len();
|
.len();
|
||||||
|
let resolver_overrides_cache = self.globals.resolver.overrides.read().unwrap().len();
|
||||||
|
let resolver_destinations_cache = self.globals.resolver.destinations.read().await.len();
|
||||||
|
|
||||||
format!(
|
format!(
|
||||||
"\
|
"\
|
||||||
|
@ -211,7 +213,9 @@ server_visibility_cache: {server_visibility_cache}
|
||||||
user_visibility_cache: {user_visibility_cache}
|
user_visibility_cache: {user_visibility_cache}
|
||||||
stateinfo_cache: {stateinfo_cache}
|
stateinfo_cache: {stateinfo_cache}
|
||||||
lasttimelinecount_cache: {lasttimelinecount_cache}
|
lasttimelinecount_cache: {lasttimelinecount_cache}
|
||||||
roomid_spacehierarchy_cache: {roomid_spacehierarchy_cache}"
|
roomid_spacehierarchy_cache: {roomid_spacehierarchy_cache}
|
||||||
|
resolver_overrides_cache: {resolver_overrides_cache}
|
||||||
|
resolver_destinations_cache: {resolver_destinations_cache}"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue