# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import json import os import subprocess import tempfile
from mach.func_cache import mach_func_cache
def _extract_resources(tasks_data):
resources = set() for t in tasks_data.values():
resources.update(t.get("attributes", {}).get("toolchain-resources", [])) return sorted(resources)
if result.returncode != 0: raise RuntimeError(
f"mach taskgraph failed in toolchain.py (exit {result.returncode})"
)
with open(output_file) as f:
tasks_data = json.load(f) finally:
os.unlink(output_file)
os.unlink(params_path) for label, data in tasks_data.items():
data["label"] = label
data["kind"] = data["attributes"]["kind"]
aliased = {} for label, t in tasks_data.items():
aliases = t["attributes"].get(f"{t['kind']}-alias") ifnot aliases:
aliases = [] if isinstance(aliases, str):
aliases = [aliases] for alias in aliases:
aliased[f"{t['kind']}-{alias}"] = t
tasks_data.update(aliased)
return tasks_data
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.