Lines Matching full:tasks
83 …"""Read buildstat text file. fallback_end is an optional end time for tasks that are not recorded …
126 def __init__(self, tasks=None): argument
127 self._tasks = tasks or []
159 self.tasks = {}
166 if set(self.tasks.keys()) != set(bsrecipe.tasks.keys()):
167 raise ValueError("Refusing to aggregate buildstats, set of tasks "
170 for taskname, taskdata in bsrecipe.tasks.items():
171 if not isinstance(self.tasks[taskname], BSTaskAggregate):
172 self.tasks[taskname] = BSTaskAggregate([self.tasks[taskname]])
173 self.tasks[taskname].append(taskdata)
185 """Get number of tasks"""
188 num += len(recipe.tasks)
201 for task, data in recipe['tasks'].items():
202 bsrecipe.tasks[task] = BSTask(data)
268 bsrecipe.tasks[task] = BSTask.from_file(
287 """Compare the tasks of two buildstats"""
291 tasks1 = bs1[pkg].tasks if pkg in bs1 else {}
292 tasks2 = bs2[pkg].tasks if pkg in bs2 else {}
307 val1 = getattr(bs1[pkg].tasks[task], stat_attr)
312 val2 = getattr(bs2[pkg].tasks[task], stat_attr)