[
  {
    "cmd": [],
    "name": "git"
  },
  {
    "cmd": [
      "vpython3",
      "-u",
      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
      "--json-output",
      "/path/to/tmp/json",
      "ensure-directory",
      "--mode",
      "0777",
      "[CACHE]/builder/perfetto"
    ],
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "git.ensure source dir",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "init",
      "[CACHE]/builder/perfetto"
    ],
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "git.init",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "fetch",
      "--tags",
      "--force",
      "https://chromium.googlesource.com/external/github.com/google/perfetto",
      "refs/heads/main"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "git.fetch",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "checkout",
      "FETCH_HEAD"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "git.checkout",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "rev-parse",
      "HEAD"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "git.rev-parse",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/install-build-deps",
      "--linux-arm"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "infra_step": true,
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "build-deps"
  },
  {
    "cmd": [],
    "name": "linux-amd64"
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "gen",
      "[CACHE]/builder/perfetto/out/linux-amd64",
      "--args=is_clang=true monolithic_binaries=true is_debug=false enable_perfetto_etm_importer=false target_os=\"linux\" target_cpu=\"x64\""
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-amd64.gn gen",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "clean",
      "[CACHE]/builder/perfetto/out/linux-amd64"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-amd64.gn clean",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/ninja",
      "-C",
      "[CACHE]/builder/perfetto/out/linux-amd64",
      "trace_processor_shell",
      "traceconv",
      "tracebox",
      "perfetto",
      "traced",
      "traced_probes"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-amd64.ninja",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [],
    "name": "linux-arm"
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "gen",
      "[CACHE]/builder/perfetto/out/linux-arm",
      "--args=is_clang=true monolithic_binaries=true is_debug=false enable_perfetto_etm_importer=false target_os=\"linux\" target_cpu=\"arm\""
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm.gn gen",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "clean",
      "[CACHE]/builder/perfetto/out/linux-arm"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm.gn clean",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/ninja",
      "-C",
      "[CACHE]/builder/perfetto/out/linux-arm",
      "trace_processor_shell",
      "traceconv",
      "tracebox",
      "perfetto",
      "traced",
      "traced_probes"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm.ninja",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [],
    "name": "linux-arm64"
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "gen",
      "[CACHE]/builder/perfetto/out/linux-arm64",
      "--args=is_clang=true monolithic_binaries=true is_debug=false enable_perfetto_etm_importer=false target_os=\"linux\" target_cpu=\"arm64\""
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm64.gn gen",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/gn",
      "clean",
      "[CACHE]/builder/perfetto/out/linux-arm64"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm64.gn clean",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "cmd": [
      "python3",
      "tools/ninja",
      "-C",
      "[CACHE]/builder/perfetto/out/linux-arm64",
      "trace_processor_shell",
      "traceconv",
      "tracebox",
      "perfetto",
      "traced",
      "traced_probes"
    ],
    "cwd": "[CACHE]/builder/perfetto",
    "luci_context": {
      "realm": {
        "name": "perfetto:ci"
      },
      "resultdb": {
        "current_invocation": {
          "name": "invocations/build:8945511751514863184",
          "update_token": "token"
        },
        "hostname": "rdbhost"
      }
    },
    "name": "linux-arm64.ninja",
    "~followup_annotations": [
      "@@@STEP_NEST_LEVEL@1@@@"
    ]
  },
  {
    "name": "$result"
  }
]