def run_perf(mesh, pod, labels, duration=20):
    filename = (labels + '_perf.data')
    filepath = (PERFWD + filename)
    perfpath = (PERFWD + PERFSH)
    kubectl_cp(PERFSH, ((pod + ':') + perfpath), (mesh + '-proxy'))
    kubectl_exec(pod, '{perf_cmd} {filename} {duration}'.format(perf_cmd=perfpath, filename=filename, duration=duration), container=(mesh + '-proxy'))
    kubectl_cp((((pod + ':') + filepath) + '.perf'), (filename + '.perf'), (mesh + '-proxy'))
    run_command_sync((('../flame/flame.sh ' + filename) + '.perf'))
def run_perf(mesh, pod, labels, duration=20):
    filename = (labels + '_perf.data')
    filepath = (PERFWD + filename)
    perfpath = (PERFWD + PERFSH)
    kubectl_cp(PERFSH, ((pod + ':') + perfpath), (mesh + '-proxy'))
    kubectl_exec(pod, '{perf_cmd} {filename} {duration}'.format(perf_cmd=perfpath, filename=filename, duration=duration), container=(mesh + '-proxy'))
    kubectl_cp((((pod + ':') + filepath) + '.perf'), (filename + '.perf'), (mesh + '-proxy'))
    run_command_sync((('../flame/flame.sh ' + filename) + '.perf'))