Document how to use new format for profile
| Bugzilla Link | 35297 |
| Resolution | FIXED |
| Resolved on | May 14, 2018 00:53 |
| Version | unspecified |
| OS | Linux |
| CC | @cddouma-arm,@MatzeB |
Extended Description
I would like to use V2 format of JSON file, but I don't know how to create proper '.profile' key/value:
http://llvm.org/docs/lnt/profiles.html
This documents creations of 'Data' value, but it does not fit to V2.
It's resolved, done in: trunk@327112
Hum. I misunderstood the issue here. The problem Martin describes is that the LNT Report file format version 2 does not allow the inclusion of profile data. Or at least it is not documented.
Exactly, I would like to use standard profile in version 2.
Hum. I misunderstood the issue here. The problem Martin describes is that the LNT Report file format version 2 does not allow the inclusion of profile data. Or at least it is not documented.
I am not an active developer, but I've created a profile reader in the past for LNT, so maybe I can help a bit.
The V2 profile format is not JSON based, it is a binary format that is not easy to generate without reverse engineering its structure from the source. However, the V1 format is pretty straight forward and lnt can upgrade it to a V2 format for you.
Any reason not to use the information under "Adding support for a new profile format" from the docs and let lnt create the V2 format?