This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profdata] Minor format fix
ClosedPublic

Authored by wenlei on Oct 3 2019, 7:03 PM.

Details

Summary

Minor format fix for output of "llvm-profdata -show"

Event Timeline

wenlei created this revision.Oct 3 2019, 7:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 3 2019, 7:03 PM
wenlei added a comment.Oct 3 2019, 9:28 PM

Before:

...
  13.1: inlined callee: _ZN6StringD2Ev: 0, 0, 0 sampled lines
    No samples collected in the function's body
    Samples collected in inlined callsites {
      0: inlined callee: _ZN6String4freeEv: 0, 0, 6 sampled lines
        Samples collected in the function's body {
          2: 0
          4: 0
          5: 0
          6: 0
          7: 0
          8: 0
        }
        Samples collected in inlined callsites {
          6: inlined callee: my_free: 0, 0, 1 sampled lines
            Samples collected in the function's body {
              4: 0
            }
            No inlined callsites in this function
}
}
}

After:

...
  13.1: inlined callee: _ZN6StringD2Ev: 0, 0, 0 sampled lines
    No samples collected in the function's body
    Samples collected in inlined callsites {
      0: inlined callee: _ZN6String4freeEv: 0, 0, 6 sampled lines
        Samples collected in the function's body {
          2: 0
          4: 0
          5: 0
          6: 0
          7: 0
          8: 0
        }
        Samples collected in inlined callsites {
          6: inlined callee: my_free: 0, 0, 1 sampled lines
            Samples collected in the function's body {
              4: 0
            }
            No inlined callsites in this function
        }
    }
}
wmi accepted this revision.Oct 7 2019, 8:41 AM

LGTM. Thanks for the fix.

This revision is now accepted and ready to land.Oct 7 2019, 8:41 AM
This revision was automatically updated to reflect the committed changes.