13 addChild(
new QTreeWidgetItem({
"Memory Name"}));
14 addChild(
new QTreeWidgetItem({
"Core Segment Name"}));
15 addChild(
new QTreeWidgetItem({
"Provider Segment Name"}));
16 addChild(
new QTreeWidgetItem({
"Entity Name"}));
17 addChild(
new QTreeWidgetItem({
"Timestamp"}));
18 addChild(
new QTreeWidgetItem({
"Instance Index"}));
24 setText(valueColumn, QString::fromStdString(
id.
str()));
26 const std::vector<std::string> items =
id.getAllItems();
29 for (
const std::string& item : items)
31 child(i++)->setText(valueColumn, QString::fromStdString(item));
34 if (
id.hasTimestamp())
36 static const char* mu =
"\u03BC";
39 <<
" (" <<
id.timestamp.toMicroSecondsSinceEpoch() <<
" " << mu <<
"s)";
40 child(4)->setText(valueColumn, QString::fromStdString(ss.str()));