[LNT] r327112 - Document how to import Performance profiles in JSON format.
Martin Liska via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 9 03:02:27 PST 2018
Author: marxin
Date: Fri Mar 9 03:02:27 2018
New Revision: 327112
URL: http://llvm.org/viewvc/llvm-project?rev=327112&view=rev
Log:
Document how to import Performance profiles in JSON format.
Differential Revision: https://reviews.llvm.org/D44005
Modified:
lnt/trunk/docs/profiles.rst
Modified: lnt/trunk/docs/profiles.rst
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/docs/profiles.rst?rev=327112&r1=327111&r2=327112&view=diff
==============================================================================
--- lnt/trunk/docs/profiles.rst (original)
+++ lnt/trunk/docs/profiles.rst Fri Mar 9 03:02:27 2018
@@ -53,31 +53,21 @@ The first step is to produce the profile
Now we just need to add it to the report. Profiles look similar to hashes in that they are samples with string data::
{
- "Machine": {
+ "format_version": "2",
+ "machine": {
...
- },
- "Run": {
+ },
+ "run": {
...
- },
- "Tests": [
- {
- "Data": [
- 0.1056,
- 0.1055
- ],
- "Info": {},
- "Name": "nts.suite1/program1.exec"
- },
- {
- "Data": [
- "eJxNj8EOgjAMhu99Cm9wULMOEHgBE888QdkASWCQFWJ8e1v04JIt+9f//7qmfkVoEj8yMXdzO70v/RJn2hJYrRQiveSWATdJvwe3jUtgecgh9Wsh9T6gyJvKUjm0kegK0mmt9UCjJUSgB5q8KsobUJOQ96dozr8tAbRApPbssOeCcm83ddoLC7ijMcA/RGUUwXt7iviPEDLJN92yh62LR7I8aBUMysgLnaKNFNzzMo8y7uGplQ4sa/j6rfn60WYaGdRhtT9fP5+JUW4="
- ],
- "Info": {},
- "Name": "nts.suite2/program1.profile"
- }
- ]
- }
-
+ },
+ "tests": [
+ {
+ "name": "nts.suite1/program1",
+ "execution_time": [ 0.1056, 0.1055 ],
+ "profile": "eJxNj8EOgjAMhu99Cm9wULMOEHgBE888QdkASWCQFWJ8e1v04JIt+9f//7qmfkVoEj8yMXdzO70v/RJn2hJYrRQiveSWATdJvwe3jUtgecgh9Wsh9T6gyJvKUjm0kegK0mmt9UCjJUSgB5q8KsobUJOQ96dozr8tAbRApPbssOeCcm83ddoLC7ijMcA/RGUUwXt7iviPEDLJN92yh62LR7I8aBUMysgLnaKNFNzzMo8y7uGplQ4sa/j6rfn60WYaGdRhtT9fP5+JUW4="
+ }
+ ]
+}
Supported formats
-----------------
More information about the llvm-commits
mailing list