if (refinement_cycle > 0)
{
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
refine_mesh();
- cycle_count["refinement"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["refinement"] = CallgrindWrapper::stop_instrumentation();
}
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
setup_dofs();
- cycle_count["setup_system"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["setup_system"] = CallgrindWrapper::stop_instrumentation();
debug_output << " Assembling..." << std::endl << std::flush;
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
assemble_system();
- cycle_count["assemble_system"] =
- callgrind_wrapper::stop_instrumentation();
+ cycle_count["assemble_system"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
solve();
- cycle_count["solve"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["solve"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
output_results(refinement_cycle);
- cycle_count["output_results"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["output_results"] = CallgrindWrapper::stop_instrumentation();
debug_output << std::endl;
}
{
std::map<std::string, std::uint64_t> cycle_count;
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
make_grid();
- cycle_count["make_grid"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["make_grid"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
setup_system();
- cycle_count["setup_system"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["setup_system"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
assemble_system();
- cycle_count["assemble_system"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["assemble_system"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
solve();
- cycle_count["solve"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["solve"] = CallgrindWrapper::stop_instrumentation();
- callgrind_wrapper::start_instrumentation();
+ CallgrindWrapper::start_instrumentation();
output_results();
- cycle_count["output_results"] = callgrind_wrapper::stop_instrumentation();
+ cycle_count["output_results"] = CallgrindWrapper::stop_instrumentation();
return {cycle_count["make_grid"],
cycle_count["setup_system"],
* --callgrind-out-file=callgrind.out ./executable
* @endcode
*/
-namespace callgrind_wrapper
+namespace CallgrindWrapper
{
/**
* Reset the current instruction counter to zero and start callgrind
AssertThrow(
is_initialized,
dealii::ExcMessage(
- "callgrind_wrapper::start_instrumentation() can only be called when "
+ "CallgrindWrapper::start_instrumentation() can only be called when "
"the executable is run via \"valgrind --tool=callgrind -q "
"--combine-dumps=yes --instr-atstart=no "
"--callgrind-out-file=callgrind.out ./executable\""));
return cycles;
}
-} // namespace callgrind_wrapper
+} // namespace CallgrindWrapper
#endif