The simplest fix is to keep a copy of the stats reported by the driver as self.driver_stats to compliment the resource tracker's own view in self.stats. Then generate the union of the two whenever one or the other is updated.
The simplest fix is to keep a copy of the stats reported by the driver as self.driver_stats to compliment the resource tracker's own view in self.stats. Then generate the union of the two whenever one or the other is updated.