Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b57e5a6b authored by François Trahay's avatar François Trahay
Browse files

remove dead code

parent 802cb149
Branches
No related tags found
1 merge request!109Improve the OTF2 parser
Pipeline #1030392 passed
......@@ -268,48 +268,6 @@ OTF2_CallbackCode ParserEventOTF2::callback_Enter(OTF2_LocationRef locationID,
OTF2_Function temp_function = ParserDefinitionOTF2::get_function_by_id(regionID);
const String function_name = String(ParserDefinitionOTF2::get_string_by_id(temp_function._name_id));
return pushState(locationID, time, t, function_name);
#if 0
Date d = ParserDefinitionOTF2::get_timestamp(time);
OTF2_Function temp_function = ParserDefinitionOTF2::get_function_by_id(regionID);
const String function_name = String(ParserDefinitionOTF2::get_string_by_id(temp_function._name_id));
map<string, Value *> extra_fields;
// get the container
OTF2_Location *temp_location = ParserDefinitionOTF2::get_location_by_id(locationID);
const String proc_name = String(ParserDefinitionOTF2::get_string_id(temp_location));
Container *temp_container = temp_location->container;
#if defined(OTF2_DEBUG)
cout << d.to_string() << " Enter_print(location=" << proc_name.to_string() << ", region=" << regionID << ", fname=" << function_name.to_string() << ")\n";
#endif // defined(OTF2_DEBUG)
// get the state type
String state_type_string("Function");
StateType *temp_state_type = t->search_state_type(state_type_string);
if (temp_state_type == 0) {
Name name_temp(state_type_string);
ContainerType cont_type = *temp_container->get_type();
t->define_state_type(name_temp, &cont_type, extra_fields);
temp_state_type = t->search_state_type(state_type_string);
assert(temp_state_type != 0);
}
// get the entity value
EntityValue *temp_value = NULL;
temp_value = t->search_entity_value(function_name, temp_state_type);
if (temp_value == NULL) {
map<string, Value *> opt;
Name entity_name(function_name);
opt["Color"] = ParserDefinitionOTF2::get_color(regionID);
t->define_entity_value(entity_name, temp_state_type, opt);
temp_value = t->search_entity_value(function_name, temp_state_type);
}
assert(temp_value);
t->push_state(d, temp_state_type, temp_container, temp_value, extra_fields);
#endif
return OTF2_CALLBACK_SUCCESS;
}
OTF2_CallbackCode ParserEventOTF2::callback_Leave(OTF2_LocationRef locationID,
......@@ -1140,8 +1098,6 @@ OTF2_CallbackCode ParserEventOTF2::callback_ThreadEnd(OTF2_LocationRef locationI
Trace *t = (Trace *)userData;
const String function_name("");
return popState(locationID, time, t, function_name);
return OTF2_CALLBACK_SUCCESS;
}
OTF2_CallbackCode ParserEventOTF2::callback_CallingContextEnter(OTF2_LocationRef locationID,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment