llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Document how to use new format for profile

Open marxin opened this issue 9 years ago • 4 comments

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.

marxin avatar Nov 14 '17 09:11 marxin

It's resolved, done in: trunk@327112

marxin avatar May 14 '18 07:05 marxin

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.

marxin avatar Nov 20 '17 14:11 marxin

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.

cddouma-arm avatar Nov 20 '17 14:11 cddouma-arm

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?

cddouma-arm avatar Nov 20 '17 10:11 cddouma-arm