Skip to content

Commit

Permalink
Print user collected properties in sst_dump
Browse files Browse the repository at this point in the history
Summary:
Include a dump of user_collected_properties in sst_dump
Closes facebook#1668

Differential Revision: D4325078

Pulled By: IslamAbdelRahman

fbshipit-source-id: 226b6d6
  • Loading branch information
IslamAbdelRahman authored and Facebook Github Bot committed Dec 14, 2016
1 parent 7004a6f commit d71e728
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/sst_dump_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,14 @@ int SSTDumpTool::Run(int argc, char** argv) {
fprintf(stdout, " # merge operands: UNKNOWN\n");
}
}
fprintf(stdout,
"Raw user collected properties\n"
"------------------------------\n");
for (const auto& kv : table_properties->user_collected_properties) {
std::string prop_name = kv.first;
std::string prop_val = Slice(kv.second).ToString(true);
fprintf(stdout, " # %s: 0x%s\n", prop_name.c_str(), prop_val.c_str());
}
}
}
return 0;
Expand Down

0 comments on commit d71e728

Please sign in to comment.