Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1380

Restore --timing option to native facter

    XMLWordPrintable

Details

    • Night's Watch
    • 3
    • ghost-26.08, ghost-2.09, ghost-9.09
    • Normal
    • 2 - 5-25% of Customers
    • 3 - Serious
    • 3 - $$$$
    • This was a very useful option to debug long running facts. Good debugging helps you solve issues faster.
    • New Feature
    • Hide
      Added `--timing` and `-t` arguments. They allow users to see how much time each fact took to get resolved.
      e.g.

      fact 'path', took: (0.000064) seconds
      fact 'puppetversion', took: (0.000879) seconds
      fact 'processors.models', took: (0.042051) seconds
      fact 'os.macosx.product', took: (0.038208) seconds

      The timing is on a very granular level, each fact in the hierarchy is benchmarked individually e.g.
      fact 'os.macosx.version', took: (0.037310) seconds
      fact 'os.macosx.product', took: (0.038208) seconds
      fact 'os.macosx.build', took: (0.038743) seconds
      Show
      Added `--timing` and `-t` arguments. They allow users to see how much time each fact took to get resolved. e.g. fact 'path', took: (0.000064) seconds fact 'puppetversion', took: (0.000879) seconds fact 'processors.models', took: (0.042051) seconds fact 'os.macosx.product', took: (0.038208) seconds The timing is on a very granular level, each fact in the hierarchy is benchmarked individually e.g. fact 'os.macosx.version', took: (0.037310) seconds fact 'os.macosx.product', took: (0.038208) seconds fact 'os.macosx.build', took: (0.038743) seconds

    Description

      A PSE in the field reports that running native Facter on Windows spikes the CPU for a few seconds on each run. The --timing option previously available in facter is no longer present in native facter, making it difficult to determine where the problem is.

      Restoring the --timing option would make it easier to debug this problem.

      Attachments

        Activity

          People

            bogdan.irimie Bogdan Irimie
            greg.larkin Greg Larkin
            Votes:
            9 Vote for this issue
            Watchers:
            19 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support