Mircea Trofin 6329355860
[ctxprof] Move test serialization to yaml (#122545)
We have a textual representation of contextual profiles for test scenarios, mainly. This patch moves that to YAML instead of JSON. YAML is more succinct and readable (some of the .ll tests should be illustrative). In addition, JSON is parse-able by the YAML reader.

A subsequent patch will address deserialization.

(thanks, @kazutakahirata, for showing me how to use the llvm YAML reader/writer APIs, which I incorrectly thought to be more low-level than the JSON ones!)
2025-01-10 18:04:25 -08:00

14 lines
353 B
YAML

- Guid: 1000
Counters: [1, 2, 3]
Callsites: - []
-
- Guid: 2000
Counters: [4, 5]
- Guid: 18446744073709551613
Counters: [6, 7, 8]
-
- Guid: 3000
Counters: [40, 50]
- Guid: 18446744073709551612
Counters: [5, 9, 10]