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

Decorate OperationContext with an OpMemoryUse object

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible

      When the feature flag is set, we should be able to use the decorator mechanism to attach memory usage statistics to the operation context. They will later be written to by memory trackers embedded in various blocking stages, and read by the OpDebug class for reporting.

      For now this can just be a class that has methods to report current and high water memory usage, similar to a mock. We can replace it with the real thing later.

      Add unit tests that show that this works.

            Assignee:
            erin.liang@mongodb.com Erin Liang
            Reporter:
            chris.wolff@mongodb.com Chris Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: