Changeset 1610dc for src/base/timer.cpp


Ignore:
Timestamp:
Dec 8, 2011, 12:53:55 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
97c25dd
Parents:
2112b1
Message:

Bugfix. Corrected pugixml api call.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1246 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/timer.cpp

    r2112b1 r1610dc  
    7070 std::map<std::string, TimerData>::iterator iter;
    7171
    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());
    7674
    7775 pugi::xml_node node_timings = node_process.append_child("Timings");
     
    8280   node_entry.append_attribute("Name").set_value(Helper::ToString(iter->first).c_str());
    8381
    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());
    8785
    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());
    9189
    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());
    9593
    9694 }
Note: See TracChangeset for help on using the changeset viewer.