Skip to content

Commit

Permalink
Profiler for direct accesses, dump to stdout the collected data
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean De Leo committed Jan 8, 2021
1 parent 110d2b5 commit 1422757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/context/global_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ GlobalContext::~GlobalContext(){
delete m_profiler_events; m_profiler_events = nullptr;
delete m_profiler_rebalances; m_profiler_rebalances = nullptr;;
#endif
m_profiler_direct_access->dump();
delete m_profiler_direct_access; m_profiler_direct_access = nullptr;

COUT_DEBUG("done");
Expand Down
2 changes: 1 addition & 1 deletion src/profiler/direct_access.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void DirectAccessCounters::dump(){
cout << " Conventional accesses: " << m_context_conventional << " (" << perc_conventional_access << " %)\n";

double perc_retries = static_cast<double>(m_context_retry) / m_context_conventional * 100.0;
cout << " Aborts: " << m_context_retry << " (" << perc_retries << "%)\n";
cout << " Aborts: " << m_context_retry << " (" << perc_retries << " %)\n";
}

cout << endl;
Expand Down

0 comments on commit 1422757

Please sign in to comment.