def AddCost(self, cost_proto):
    self.__throttle.AddTransfer(INDEX_MODIFICATIONS, cost_proto.index_writes())
    self.__throttle.AddTransfer(ENTITIES_MODIFIED, cost_proto.entity_writes())
Patches read and write access to perfkitbenchmarker.flags.FLAGS.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/remote_api/throttle.py/DatastoreThrottler.AddCost--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/tests/mock_flags.py/PatchFlags