Ginkgo
Generated from pipelines/1589998975 branch based on develop. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
Writes the results from ProfilerHook::create_summary() and ProfilerHook::create_nested_summary() to a ASCII table in Markdown format. More...
#include <ginkgo/core/log/profiler_hook.hpp>
Public Member Functions | |
TableSummaryWriter (std::ostream &output=std::cerr, std::string header="Runtime summary") | |
Constructs a writer on an output stream. More... | |
void | write (const std::vector< summary_entry > &entries, std::chrono::nanoseconds overhead) override |
Callback to write out the summary results. More... | |
void | write_nested (const nested_summary_entry &root, std::chrono::nanoseconds overhead) override |
Callback to write out the summary results. More... | |
Writes the results from ProfilerHook::create_summary() and ProfilerHook::create_nested_summary() to a ASCII table in Markdown format.
gko::log::ProfilerHook::TableSummaryWriter::TableSummaryWriter | ( | std::ostream & | output = std::cerr , |
std::string | header = "Runtime summary" |
||
) |
Constructs a writer on an output stream.
output | the output stream to write the table to. |
header | the header to write above the table. |
|
overridevirtual |
Callback to write out the summary results.
entries | the vector of ranges with runtime and count. |
overhead | an estimate of the profiler overhead |
Implements gko::log::ProfilerHook::SummaryWriter.
|
overridevirtual |
Callback to write out the summary results.
root | the root range with runtime and count. |
overhead | an estimate of the profiler overhead |
Implements gko::log::ProfilerHook::NestedSummaryWriter.