GsObjectInventory reports the number of bytes used by Class. For Strings, when the repository contains many large Strings, the number of bytes used was considerably overstated; overages by as much as 8x have been observed.
You can find the number of instances using code such as the following.
run
| sum |
sum := 0.
(SystemRepository allInstances: String) do: [:ea | sum := sum + ea _basicSize].
sum
%
Last updated: 8/9/24