This is an archive of the discontinued LLVM Phabricator instance.

[SampleProf] NFC. Expose reusable functionality in SampleProfile.
ClosedPublic

Authored by mtrofin on Feb 21 2018, 8:23 PM.

Details

Summary

Exposing getOffset and findFunctionSamples as members of
SampleProfile. They are intimately tied to design choices of the
sample profile format - using offsets instead of line numbers, and
traversing inlined functions stack, respectively.

Diff Detail

Event Timeline

mtrofin created this revision.Feb 21 2018, 8:23 PM
davidxl accepted this revision.Feb 21 2018, 9:29 PM

lgtm

This revision is now accepted and ready to land.Feb 21 2018, 9:29 PM
This revision was automatically updated to reflect the committed changes.