msiGetStatSample

This works such as keylget for retvar handling.

msiGetStatSample {threadName | index} ?retvar?

You can specify the thread from which to extract data by name or by index.

  • If the argument is wholly numeric, then it is assumed to be an index. If not, then it is assumed to be a thread name.
  • If you do not specify retvar, then the value returned is the keyed list of static data. If the thread is not found within the ToC, then an error results.
  • If you specify retvar and the thread is in the ToC, then the keyed list of data is placed in retvar and the command returns 1. If the thread is not in the ToC, then the command returns 0 and retvar is left unchanged.
  • If the specified thread exists but has never been initialized, then an empty keyed list results.