This is an archive of the discontinued LLVM Phabricator instance.

[MemProf] Add printing utilities for MemProf summary structures
ClosedPublic

Authored by tejohnson on Feb 17 2023, 6:12 PM.

Details

Summary

Split out of D140908 as suggested, and added unit testing.

Diff Detail

Event Timeline

tejohnson created this revision.Feb 17 2023, 6:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 6:12 PM
Herald added a subscriber: arphaman. · View Herald Transcript
tejohnson requested review of this revision.Feb 17 2023, 6:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 6:12 PM
snehasish accepted this revision.Feb 21 2023, 12:16 PM

lgtm with some minor comments.

llvm/unittests/IR/ModuleSummaryIndexTest.cpp
19

nit: Unless you have state shared across multiple tests, it would be simpler to avoid the test fixture and keep makeLLVMIndex as static helper method.

34

Can we remove content in the string summary which is unrelated to the test? E.g. funcFlags should be ok to drop?

53

Can we use a raw string for the expectation?

This revision is now accepted and ready to land.Feb 21 2023, 12:16 PM
tejohnson marked 3 inline comments as done.Feb 21 2023, 2:00 PM
tejohnson updated this revision to Diff 499291.Feb 21 2023, 2:00 PM

Address comments

This revision was landed with ongoing or failed builds.Feb 22 2023, 6:24 AM
This revision was automatically updated to reflect the committed changes.