Can I totalise memory used by Dimensions via TI?
Posted: Mon Jun 27, 2016 10:43 am
I am enjoying doing a bit of digging into the 'innards' using TI.
I know that I can get a list of all Dimensions in a Model by using GO_New_Stores:}Dimensions->All as a data source, I then get a Variable of Contents Other which will have the Dimension name that I can cycle through in the Data tab.
I can use DIMSIZ to get the number of Elements in a Dimension. I can also use a while loop and DIMNM to get the name of each Element - that's all good. I have that running and outputting stuff like:
What I'd really like to do is access the information you can see in Architect when you click on the Dimensions Node and you see the list of Dimensions and each one has a Memory Used column - so GO_New_Stores Asset Type is 17KB and Assumptions is 26KB... I'd like to total these up in my TI and LogOutput the fact that all Dimensions used XX of memory.
So... the crux of my question... can I get the memory size of a Dimension via TI?
Please bear in mind, I'm only tinkering here - I don't need this to do my job today... it's not urgent, but I'm always grateful if anyone can provide me with some insight.
I know that I can get a list of all Dimensions in a Model by using GO_New_Stores:}Dimensions->All as a data source, I then get a Variable of Contents Other which will have the Dimension name that I can cycle through in the Data tab.
I can use DIMSIZ to get the number of Elements in a Dimension. I can also use a while loop and DIMNM to get the name of each Element - that's all good. I have that running and outputting stuff like:
Code: Select all
6980 [2] INFO 2016-06-27 10:30:50.685 TM1.Process Process "!Cycle_Dimensions" executed by user "Admin"
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Dimension Name = Asset Type
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput DimSiz = 2
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 1 = Freehold
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 2 = Leasehold
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Dimension Name = Assumptions
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput DimSiz = 5
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 1 = Average Monthly Revenue
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 2 = Opening Cost P&L
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 3 = Opening Cost Capital
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 4 = GROSS MARGIN %
6980 [2] INFO 2016-06-27 10:30:50.687 TM1.TILogOutput Element 5 = GMWA
So... the crux of my question... can I get the memory size of a Dimension via TI?
Please bear in mind, I'm only tinkering here - I don't need this to do my job today... it's not urgent, but I'm always grateful if anyone can provide me with some insight.