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

Track total active time of transaction in SingleTransactionStats

    XMLWordPrintable

    Details

      Description

      We want to track the total amount of "active" and "inactive" time spent by a transaction in SingleTransactionStats. A transaction is considered "active" if it is currently executing an operation, and considered "inactive" if it is idly waiting for a new operation to occur. To measure "active" time, we can use the "unstash" and "stash" transaction events to mark the beginning and end of an "active" period. When an operation stashes its transaction resources, we should add that operation's total running time to a cumulative SingleTransactionStats::timeActive field on the session. Similarly, when the first operation on a transaction completes, we should add its running time to SingleTransactionStats::timeActive.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jinny.byun Jinny Byun
              Reporter:
              william.schultz William Schultz (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: