def update_result(self, context):
        self.collector.join()    # wait for "proc.txt" to generate.
        context.add_artifact('proctxt', 'proc.txt', 'raw')
        calc = Calculator(self.cores, self.threshold, context)  # pylint: disable=E1101
        calc.calculate()
        if not self.output_artifact_registered:
            context.add_run_artifact('cpuutil', 'coreutil.csv', 'data')
            self.output_artifact_registered = True
updates result into coreutil.csv
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/coreutil/__init__.py/CoreUtilization.update_result