brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.9 KiB · 859b705 Raw
141 lines · plain
1; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-0.proftext | FileCheck %s --check-prefix=OVERLAP0  --match-full-lines --strict-whitespace2; OVERLAP0:Program level:3; OVERLAP0:  Whole program profile similarity: 100.000%4; OVERLAP0:  Whole program sample overlap: 100.000%5; OVERLAP0:    percentage of samples unique in base profile: 0.000%6; OVERLAP0:    percentage of samples unique in test profile: 0.000%7; OVERLAP0:    total samples in base profile: 139438; OVERLAP0:    total samples in test profile: 139439; OVERLAP0:  Function overlap: 100.000%10; OVERLAP0:    overlap functions: 411; OVERLAP0:    functions unique in base profile: 012; OVERLAP0:    functions unique in test profile: 013; OVERLAP0:  Hot-function overlap: 100.000%14; OVERLAP0:    overlap hot functions: 415; OVERLAP0:    hot functions unique in base profile: 016; OVERLAP0:    hot functions unique in test profile: 017; OVERLAP0:  Hot-block overlap: 100.000%18; OVERLAP0:    overlap hot blocks: 1219; OVERLAP0:    hot blocks unique in base profile: 020; OVERLAP0:    hot blocks unique in test profile: 021 22; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-1.proftext | FileCheck %s --check-prefix=OVERLAP1  --match-full-lines --strict-whitespace23; OVERLAP1:Program level:24; OVERLAP1:  Whole program profile similarity: 100.000%25; OVERLAP1:  Whole program sample overlap: 10.000%26; OVERLAP1:    percentage of samples unique in base profile: 0.000%27; OVERLAP1:    percentage of samples unique in test profile: 0.000%28; OVERLAP1:    total samples in base profile: 1394329; OVERLAP1:    total samples in test profile: 13943030; OVERLAP1:  Function overlap: 100.000%31; OVERLAP1:    overlap functions: 432; OVERLAP1:    functions unique in base profile: 033; OVERLAP1:    functions unique in test profile: 034; OVERLAP1:  Hot-function overlap: 100.000%35; OVERLAP1:    overlap hot functions: 436; OVERLAP1:    hot functions unique in base profile: 037; OVERLAP1:    hot functions unique in test profile: 038; OVERLAP1:  Hot-block overlap: 100.000%39; OVERLAP1:    overlap hot blocks: 1240; OVERLAP1:    hot blocks unique in base profile: 041; OVERLAP1:    hot blocks unique in test profile: 042 43; RUN: llvm-profdata overlap --sample --similarity-cutoff=800000 %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-2.proftext | FileCheck %s --check-prefix=OVERLAP2  --match-full-lines --strict-whitespace44; OVERLAP2:Program level:45; OVERLAP2:  Whole program profile similarity: 63.720%46; OVERLAP2:  Whole program sample overlap: 29.649%47; OVERLAP2:    percentage of samples unique in base profile: 0.000%48; OVERLAP2:    percentage of samples unique in test profile: 0.000%49; OVERLAP2:    total samples in base profile: 1394350; OVERLAP2:    total samples in test profile: 413451; OVERLAP2:  Function overlap: 100.000%52; OVERLAP2:    overlap functions: 453; OVERLAP2:    functions unique in base profile: 054; OVERLAP2:    functions unique in test profile: 055; OVERLAP2:  Hot-function overlap: 100.000%56; OVERLAP2:    overlap hot functions: 457; OVERLAP2:    hot functions unique in base profile: 058; OVERLAP2:    hot functions unique in test profile: 059; OVERLAP2:  Hot-block overlap: 100.000%60; OVERLAP2:    overlap hot blocks: 1261; OVERLAP2:    hot blocks unique in base profile: 062; OVERLAP2:    hot blocks unique in test profile: 063; OVERLAP2:Function-level details:64; OVERLAP2:Base weight    Test weight    Similarity   Overlap   Base unique   Test unique   Base samples   Test samples   Function name65; OVERLAP2:78.15%         26.29%         48.09%       9.98%     0.00%         0.00%         10896          1087           main66; OVERLAP2:10.31%         34.76%         75.55%       100.00%   0.00%         0.00%         1437           1437           _Z3bari67 68; RUN: llvm-profdata overlap --sample --value-cutoff=1000 %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-3.proftext | FileCheck %s --check-prefix=OVERLAP3  --match-full-lines --strict-whitespace69; OVERLAP3:Program level:70; OVERLAP3:  Whole program profile similarity: 14.301%71; OVERLAP3:  Whole program sample overlap: 6.040%72; OVERLAP3:    percentage of samples unique in base profile: 82.522%73; OVERLAP3:    percentage of samples unique in test profile: 88.216%74; OVERLAP3:    total samples in base profile: 1394375; OVERLAP3:    total samples in test profile: 1304376; OVERLAP3:  Function overlap: 33.333%77; OVERLAP3:    overlap functions: 278; OVERLAP3:    functions unique in base profile: 279; OVERLAP3:    functions unique in test profile: 280; OVERLAP3:  Hot-function overlap: 16.667%81; OVERLAP3:    overlap hot functions: 182; OVERLAP3:    hot functions unique in base profile: 383; OVERLAP3:    hot functions unique in test profile: 284; OVERLAP3:  Hot-block overlap: 4.545%85; OVERLAP3:    overlap hot blocks: 186; OVERLAP3:    hot blocks unique in base profile: 1187; OVERLAP3:    hot blocks unique in test profile: 1088; OVERLAP3:Function-level details:89; OVERLAP3:Base weight    Test weight    Similarity   Overlap   Base unique   Test unique   Base samples   Test samples   Function name90; OVERLAP3:10.31%         11.02%         99.29%       100.00%   0.00%         0.00%         1437           1437           _Z3bari91; OVERLAP3:0.00%          83.54%         0.00%        0.00%     0.00%         100.00%       0              10896          main292 93; RUN: llvm-profdata overlap --sample --function=main %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-4.proftext | FileCheck %s --check-prefix=OVERLAP4  --match-full-lines --strict-whitespace94; OVERLAP4:Program level:95; OVERLAP4:  Whole program profile similarity: 17.302%96; OVERLAP4:  Whole program sample overlap: 8.134%97; OVERLAP4:    percentage of samples unique in base profile: 73.542%98; OVERLAP4:    percentage of samples unique in test profile: 82.209%99; OVERLAP4:    total samples in base profile: 13943100; OVERLAP4:    total samples in test profile: 10213101; OVERLAP4:  Function overlap: 100.000%102; OVERLAP4:    overlap functions: 4103; OVERLAP4:    functions unique in base profile: 0104; OVERLAP4:    functions unique in test profile: 0105; OVERLAP4:  Hot-function overlap: 100.000%106; OVERLAP4:    overlap hot functions: 4107; OVERLAP4:    hot functions unique in base profile: 0108; OVERLAP4:    hot functions unique in test profile: 0109; OVERLAP4:  Hot-block overlap: 14.286%110; OVERLAP4:    overlap hot blocks: 3111; OVERLAP4:    hot blocks unique in base profile: 9112; OVERLAP4:    hot blocks unique in test profile: 9113; OVERLAP4:Function-level details:114; OVERLAP4:Base weight    Test weight    Similarity   Overlap   Base unique   Test unique   Base samples   Test samples   Function name115; OVERLAP4:78.15%         70.17%         23.33%       11.18%    66.14%        74.64%        10896          7166           main116 117; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-5.proftext | FileCheck %s --check-prefix=OVERLAP5  --match-full-lines --strict-whitespace118; OVERLAP5:Sum of sample counts for profile {{.*}}/Inputs/sample-overlap-5.proftext is 0.119 120 121; RUN: llvm-profdata overlap --sample %S/Inputs/cs-sample.proftext %S/Inputs/cs-sample.proftext | FileCheck %s --check-prefix=CS  --match-full-lines --strict-whitespace122; CS:Program level:123; CS:  Whole program profile similarity: 100.000%124; CS:  Whole program sample overlap: 100.000%125; CS:    percentage of samples unique in base profile: 0.000%126; CS:    percentage of samples unique in test profile: 0.000%127; CS:    total samples in base profile: 772562128; CS:    total samples in test profile: 772562129; CS:  Function overlap: 100.000%130; CS:    overlap functions: 8131; CS:    functions unique in base profile: 0132; CS:    functions unique in test profile: 0133; CS:  Hot-function overlap: 100.000%134; CS:    overlap hot functions: 2135; CS:    hot functions unique in base profile: 0136; CS:    hot functions unique in test profile: 0137; CS:  Hot-block overlap: 100.000%138; CS:    overlap hot blocks: 6139; CS:    hot blocks unique in base profile: 0140; CS:    hot blocks unique in test profile: 0141