brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 9e96693 Raw
106 lines · plain
1RUN: llvm-profdata show --sample --json %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=JSON2RUN: llvm-profdata show --sample --show-format=json %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=JSON3JSON:      [4JSON-NEXT:   {5JSON-NEXT:     "name": "main",6JSON-NEXT:     "total": 184019,7JSON-NEXT:     "head": 0,8JSON-NEXT:     "body": [9JSON-NEXT:       {10JSON-NEXT:         "line": 4,11JSON-NEXT:         "samples": 53412JSON-NEXT:       },13JSON-NEXT:       {14JSON-NEXT:         "line": 4,15JSON-NEXT:         "discriminator": 2,16JSON-NEXT:         "samples": 53417JSON-NEXT:       },18JSON-NEXT:       {19JSON-NEXT:         "line": 5,20JSON-NEXT:         "samples": 107521JSON-NEXT:       },22JSON-NEXT:       {23JSON-NEXT:         "line": 5,24JSON-NEXT:         "discriminator": 1,25JSON-NEXT:         "samples": 107526JSON-NEXT:       },27JSON-NEXT:       {28JSON-NEXT:         "line": 6,29JSON-NEXT:         "samples": 208030JSON-NEXT:       },31JSON-NEXT:       {32JSON-NEXT:         "line": 7,33JSON-NEXT:         "samples": 53434JSON-NEXT:       },35JSON-NEXT:       {36JSON-NEXT:         "line": 9,37JSON-NEXT:         "samples": 2064,38JSON-NEXT:         "calls": [39JSON-NEXT:           {40JSON-NEXT:             "function": "_Z3bari",41JSON-NEXT:             "samples": 147142JSON-NEXT:           },43JSON-NEXT:           {44JSON-NEXT:             "function": "_Z3fooi",45JSON-NEXT:             "samples": 63146JSON-NEXT:           }47JSON-NEXT:         ]48JSON-NEXT:       }49JSON-NEXT:     ],50JSON-NEXT:     "callsites": [51JSON-NEXT:       {52JSON-NEXT:         "line": 10,53JSON-NEXT:         "samples": [54JSON-NEXT:           {55JSON-NEXT:             "name": "inline1",56JSON-NEXT:             "total": 1000,57JSON-NEXT:             "body": [58JSON-NEXT:               {59JSON-NEXT:                 "line": 1,60JSON-NEXT:                 "samples": 100061JSON-NEXT:               }62JSON-NEXT:             ]63JSON-NEXT:           }64JSON-NEXT:         ]65JSON-NEXT:       },66JSON-NEXT:       {67JSON-NEXT:         "line": 10,68JSON-NEXT:         "samples": [69JSON-NEXT:           {70JSON-NEXT:             "name": "inline2",71JSON-NEXT:             "total": 2000,72JSON-NEXT:             "body": [73JSON-NEXT:               {74JSON-NEXT:                 "line": 1,75JSON-NEXT:                 "samples": 200076JSON-NEXT:               }77JSON-NEXT:             ]78JSON-NEXT:           }79JSON-NEXT:         ]80JSON-NEXT:       }81JSON-NEXT:     ]82JSON-NEXT:   },83JSON-NEXT:   {84JSON-NEXT:     "name": "_Z3bari",85JSON-NEXT:     "total": 20301,86JSON-NEXT:     "head": 1437,87JSON-NEXT:     "body": [88JSON-NEXT:       {89JSON-NEXT:         "line": 1,90JSON-NEXT:         "samples": 143791JSON-NEXT:       }92JSON-NEXT:     ]93JSON-NEXT:   },94JSON-NEXT:   {95JSON-NEXT:     "name": "_Z3fooi",96JSON-NEXT:     "total": 7711,97JSON-NEXT:     "head": 610,98JSON-NEXT:     "body": [99JSON-NEXT:       {100JSON-NEXT:         "line": 1,101JSON-NEXT:         "samples": 610102JSON-NEXT:       }103JSON-NEXT:     ]104JSON-NEXT:   }105JSON-NEXT: ]106