×

Mutex profiling based on waiting analytics

  • US 10,417,057 B2
  • Filed: 01/30/2017
  • Issued: 09/17/2019
  • Est. Priority Date: 01/30/2017
  • Status: Active Grant
First Claim
Patent Images

1. A non-transitory computer-readable medium comprising instructions which, when executed by one or more hardware processors, causes performance of operations comprising:

  • identifying a first thread executing an activity;

    determining a set of one or more mutual-exclusion locks held by the first thread while the activity is being executed;

    determining a total number of threads waiting for at least one of the set of one or more mutual-exclusion locks held by the first thread during execution of the activity;

    stochastically interrupting the first thread executing the activity to determine a set of one or more values representing costs associated with executing the activity;

    generating a profile for the activity based at least in part on the set of one or more values representing costs associated with executing the activity;

    determining a total cost associated with execution of the activity as a function of at least the set of one or more values representing at least one cost associated with the first thread executing the activity and the total number of threads waiting for at least one of the set of one or more mutual-exclusion locks held by the first thread during execution of the activity; and

    implementing, based at least in part on the total cost associated with execution of the activity, a performance optimization by modifying code for executing the activity to reduce mutex wait times caused by execution of the activity.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×