Changeset 1610dc for src/base/timer.cpp
- Timestamp:
- Dec 8, 2011, 12:53:55 PM (14 years ago)
- Children:
- 97c25dd
- Parents:
- 2112b1
- File:
-
- 1 edited
-
src/base/timer.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/timer.cpp
r2112b1 r1610dc 70 70 std::map<std::string, TimerData>::iterator iter; 71 71 72 pugi::xml_document doc; 73 pugi::xml_node node_process = doc.append_child("Process"); 74 pugi::xml_attribute att_rank = node_process.append_attribute("Rank"); 75 att_rank.set_value(MG::GetComm()->GlobalRank()); 72 pugi::xml_node node_process; 73 node_process.append_attribute("Rank").set_value(MG::GetComm()->GlobalRank()); 76 74 77 75 pugi::xml_node node_timings = node_process.append_child("Timings"); … … 82 80 node_entry.append_attribute("Name").set_value(Helper::ToString(iter->first).c_str()); 83 81 84 pugi::xml_node node_duration = node_entry.append_child("Duration");85 pugi::xml_node node_duration_data = node_duration.append_child(pugi::node_pcdata);86 node_duration_data.set_value(Helper::ToString(iter->second.duration).c_str());82 node_entry.append_child("Duration") 83 .append_child(pugi::node_pcdata) 84 .set_value(Helper::ToString(iter->second.duration).c_str()); 87 85 88 pugi::xml_node node_warnings = node_entry.append_child("Warnings");89 pugi::xml_node node_warnings_data = node_warnings.append_child(pugi::node_pcdata);90 node_warnings_data.set_value(Helper::ToString(iter->second.warning).c_str());86 node_entry.append_child("Warnings") 87 .append_child(pugi::node_pcdata) 88 .set_value(Helper::ToString(iter->second.warning).c_str()); 91 89 92 pugi::xml_node node_total = node_entry.append_child("Total");93 pugi::xml_node node_total_data = node_total.append_child(pugi::node_pcdata);94 node_total_data.set_value(Helper::ToString(iter->second.total).c_str());90 node_entry.append_child("Total") 91 .append_child(pugi::node_pcdata) 92 .set_value(Helper::ToString(iter->second.total).c_str()); 95 93 96 94 }
Note:
See TracChangeset
for help on using the changeset viewer.
