I created this macro to track global variable usage. Every global variable is tracked, both in terms of the time of each change and frequency of changes. The tracking is done by a 30 minute timer that checks for changes to every variable. If there is a change detected, it records the TIME() of the change and adds 1 to the "count" of changes for each variable.
You can change the timer to some other value than 30 minutes. You can also change the Hot Key that triggers the display of the recorded data.
Be warned, if you use this macro, it will DOUBLE the amount of storage used by your variables. So maybe you don't want to use this. But if you have a small number of global variables, it won't be too wasteful.
After I wrote this, I realized I could use an MD5 hash so that it won't DOUBLE the space used, but that would slow down the speed of the periodic test. So I'm not sure if I should do that. If people like this routine but want a better way to conserve space, I can implement that.
At the very end of the macro (coloured in red) is a piece of code that will zeroize all the dictionaries used by this macro. So if you are done tracking your variables, perhaps you should run that code, to save space.
Variable Monitor and Display Macro (v11.0.3)