Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
solverstack
vite
Commits
b57e5a6b
Commit
b57e5a6b
authored
8 months ago
by
François Trahay
Browse files
Options
Downloads
Patches
Plain Diff
remove dead code
parent
802cb149
Branches
Branches containing commit
No related tags found
1 merge request
!109
Improve the OTF2 parser
Pipeline
#1030392
passed
8 months ago
Stage: pre
Stage: build
Stage: analyze
Stage: validate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser/OTF2Parser/ParserEventOTF2.cpp
+0
-44
0 additions, 44 deletions
src/parser/OTF2Parser/ParserEventOTF2.cpp
with
0 additions
and
44 deletions
src/parser/OTF2Parser/ParserEventOTF2.cpp
+
0
−
44
View file @
b57e5a6b
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment