Skip to content

Commit

Permalink
Merge branch 'develop' of git.nic.uoregon.edu:/gitroot/xpress-apex in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
khuck committed Dec 4, 2018
2 parents 1e31f96 + 40d8e3f commit a87aecd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/apex/apex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,10 @@ std::shared_ptr<task_wrapper> update_task(
task_identifier * id = task_identifier::get_task_id(timer_name);
if (id != wrapper->get_task_id()) {
wrapper->aliases.insert(id);
//printf("New alias: %s to %s\n", wrapper->task_id->get_name().c_str(), timer_name.c_str());
}
if (wrapper->prof != nullptr) {
wrapper->prof->set_task_id(wrapper->task_id);
}
return wrapper;
}
Expand All @@ -1130,7 +1134,12 @@ std::shared_ptr<task_wrapper> update_task(
task_identifier * id = task_identifier::get_task_id(function_address);
wrapper = _new_task(id, UINTMAX_MAX, null_task_wrapper, instance);
} else {
//printf("New alias: %s", wrapper->task_id->get_name().c_str());
wrapper->task_id = task_identifier::get_task_id(function_address);
//printf(" to %s\n", wrapper->task_id->get_name().c_str());
}
if (wrapper->prof != nullptr) {
wrapper->prof->set_task_id(wrapper->task_id);
}
return wrapper;
}
Expand Down
3 changes: 3 additions & 0 deletions src/apex/profiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class profiler {
task_identifier * get_task_id(void) {
return task_id;
}
void set_task_id(task_identifier * tid) {
task_id = tid;
}
// this constructor is for regular timers
profiler(std::shared_ptr<task_wrapper> &task,
bool resume = false,
Expand Down

0 comments on commit a87aecd

Please sign in to comment.