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

Add some convenience methods to memory tracker classes

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently SimpleMemoryUsageTracker and MemoryUsageTracker don't have a handy way to reset the amount of tracked memory to 0. It seems really useful to have this.

      Also, should we update these classes so that the amount of memory being tracked goes to zero when the destructor fires? This seems to overlap a bit with the intention of the Token classes.

      As we begin to instrument stages with memory tracking, we should consider what features these classes could use to make tracking more idiomatic.

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

              Created:
              Updated: