Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90115

Add support for reading cycleclock

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch

      Add support for reading cycleclock time (x64: rdtsc, arm: cntvct_el0, etc.) and frequency for all supported platforms.
       
      The currently included libraries like absl and google benchmark have functionality that allows reading cycleclock time and frequency, but the support for it is internal, and the api may change or be removed at any time.
       
      We need an official/supported way to access cycleclock, and some options may be vendoring in appropriate 3rdparty library, building one in house for supported platforms, forking absl/google benchmark, etc.
       
      The example use case for cycle clock access:
      https://jira.mongodb.org/browse/SERVER-88374
      which currently as a workaround uses internal access to absl cycleclock, which should be replaced when officially supported cycleclock access is available.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: