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

Restore --timing option to native facter

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Sub-team:
    • Story Points:
      3
    • Sprint:
      ghost-26.08, ghost-2.09, ghost-9.09
    • CS Priority:
      Normal
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      3 - $$$$
    • CS Impact:
      This was a very useful option to debug long running facts. Good debugging helps you solve issues faster.
    • Release Notes:
      New Feature
    • Release Notes Summary:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support