summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>2024-04-22 15:16:42 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2024-04-23 09:39:47 +0200
commitfd2aaac24712550e4bbd349575192edb56bc94c9 (patch)
tree79616409ba266e8589e7af093a27f5a286693dae /vcl
parenta29d91ac403f1ed431ca95b8b9c290bd354c3ae7 (diff)
ITEM: Add measurements for SfxItemSet usages (debug only)
I was wondering how much of that arrays of pointers to SfxPoolItems is actually used in the SfxItemSets in real office runtime, so I added code now to measure that. It does use the state of the ItemSet at destruction, so it is possible that items were added/removed which are not covered, but most cases of internal usages do not do that. I then check/sort the collected data at office shutdown, it will be printed as SAL_INFO when svl.items/vcl.items is set, so use this to see the data. This gives info about the average space utilization in different ItemSets with different sizes, also gives an insight about used ItemSet sizes and amount of their usages. Of course results differ from app to app and dependent of what is done with the office, but interestingly when using quite some files opening from all apps it toggles/normalizes to something around 20-25%... Change-Id: I3eb2f0401c39a5bdb5d1d8176e95df07be4c111a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166455 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svapp.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 3b150e1bd956..6f3cab0c90ed 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -211,6 +211,7 @@ Application::~Application()
// List SfxPoolItems with highest RefCounts, these are the best
// candidates to add a ItemInstanceManager mechanism
listSfxPoolItemsWithHighestUsage(20);
+ listSfxItemSetUsage();
#endif
}