File tree Expand file tree Collapse file tree 2 files changed +2
-47
lines changed Expand file tree Collapse file tree 2 files changed +2
-47
lines changed Original file line number Diff line number Diff line change @@ -1183,10 +1183,6 @@ template <> struct MappingTraits<memprof::Frame> {
1183
1183
(void )Column;
1184
1184
(void )IsInlineFrame;
1185
1185
}
1186
-
1187
- // Request the inline notation for brevity:
1188
- // { Function: 123, LineOffset: 11, Column: 10; IsInlineFrame: true }
1189
- static const bool flow = true ;
1190
1186
};
1191
1187
1192
1188
template <> struct CustomMappingTraits <memprof::PortableMemInfoBlock> {
@@ -1211,13 +1207,8 @@ template <> struct CustomMappingTraits<memprof::PortableMemInfoBlock> {
1211
1207
Io.setError (" Key is not a valid validation event" );
1212
1208
}
1213
1209
1214
- static void output (IO &Io, memprof::PortableMemInfoBlock &MIB) {
1215
- auto Schema = MIB.getSchema ();
1216
- #define MIBEntryDef (NameTag, Name, Type ) \
1217
- if (Schema.test (llvm::to_underlying (memprof::Meta::Name))) \
1218
- Io.mapRequired (#Name, MIB.Name );
1219
- #include " llvm/ProfileData/MIBEntryDef.inc"
1220
- #undef MIBEntryDef
1210
+ static void output (IO &Io, memprof::PortableMemInfoBlock &VI) {
1211
+ llvm_unreachable (" To be implemented" );
1221
1212
}
1222
1213
};
1223
1214
Original file line number Diff line number Diff line change @@ -807,40 +807,4 @@ TEST(MemProf, YAMLParser) {
807
807
EXPECT_THAT (Record.CallSiteIds ,
808
808
ElementsAre (hashCallStack (CS3), hashCallStack (CS4)));
809
809
}
810
-
811
- template <typename T> std::string serializeInYAML (T &Val) {
812
- std::string Out;
813
- llvm::raw_string_ostream OS (Out);
814
- llvm::yaml::Output Yout (OS);
815
- Yout << Val;
816
- return Out;
817
- }
818
-
819
- TEST (MemProf, YAMLWriterFrame) {
820
- Frame F (11 , 22 , 33 , true );
821
-
822
- std::string Out = serializeInYAML (F);
823
- EXPECT_EQ (Out, R"YAML( ---
824
- { Function: 11, LineOffset: 22, Column: 33, Inline: true }
825
- ...
826
- )YAML" );
827
- }
828
-
829
- TEST (MemProf, YAMLWriterMIB) {
830
- MemInfoBlock MIB;
831
- MIB.AllocCount = 111 ;
832
- MIB.TotalSize = 222 ;
833
- MIB.TotalLifetime = 333 ;
834
- MIB.TotalLifetimeAccessDensity = 444 ;
835
- PortableMemInfoBlock PMIB (MIB, llvm::memprof::getHotColdSchema ());
836
-
837
- std::string Out = serializeInYAML (PMIB);
838
- EXPECT_EQ (Out, R"YAML( ---
839
- AllocCount: 111
840
- TotalSize: 222
841
- TotalLifetime: 333
842
- TotalLifetimeAccessDensity: 444
843
- ...
844
- )YAML" );
845
- }
846
810
} // namespace
You can’t perform that action at this time.
0 commit comments