def StoreResourceUsage(self, responses, client_id):
    flow_path = responses.status.child_session_id
    status = responses.status

    resources = rdf_client.ClientResources()
    resources.client_id = client_id
    resources.session_id = flow_path
    resources.cpu_usage.user_cpu_time = status.cpu_time_used.user_cpu_time
    resources.cpu_usage.system_cpu_time = status.cpu_time_used.system_cpu_time
    resources.network_bytes_sent = status.network_bytes_sent
    self.state.context.usage_stats.RegisterResources(resources)
Open child flow and account its' reported resource usage.
dataset/ETHPy150Open google/grr/grr/lib/hunts/standard.py/GenericHunt.StoreResourceUsage