ENH: add some system information when outputting profiling

- basic cpuInfo (model identification, MHz, etc)
- process memInfo

- profiling is activated via the case system/controlDict by
  adding a "profiling" sub-dictionary.

  Simply add the following (everything enabled):

      profiling
      {}

  Which corresponds to the longer form:

      profiling
      {
          active      true;  // default: true
          cpuInfo     true;  // default: true
          memInfo     true;  // default: true
          sysInfo     true;  // default: true
      }

  This can be used to selectively disable any extra information
  (eg, you don't want anyone else to know what hardware was used).
This commit is contained in:
Mark Olesen
2016-06-15 20:17:44 +02:00
parent c7b27f5af9
commit 2dc31390df
9 changed files with 434 additions and 25 deletions

View File