guanaqo main
Utilities for scientific software
Loading...
Searching...
No Matches
trace.cpp File Reference
#include <guanaqo/perfetto/trace.hpp>
#include <fstream>
#include <future>
#include <stdexcept>
Include dependency graph for trace.cpp:

Go to the source code of this file.

Namespaces

namespace  guanaqo
namespace  guanaqo::trace

Functions

uint64_t & guanaqo::trace::get_thread_gflop_count ()
 Get a reference to the thread-local GFLOP counter.
void guanaqo::trace::initialize_tracing ()
 Initialize Perfetto for in-process tracing and register guanaqo's track event categories.
std::unique_ptr<::perfetto::TracingSession > guanaqo::trace::start_tracing (uint32_t memory_kb=128 *1024)
 Start a new tracing session with the specified buffer size in KiB.
void guanaqo::trace::abort_tracing (std::unique_ptr<::perfetto::TracingSession > tracing_session)
 Stop the tracing session and discard the trace data.
void guanaqo::trace::stop_tracing (std::unique_ptr<::perfetto::TracingSession > tracing_session, const fs::path &output_path)
 Stop the tracing session and write the trace data to the specified output file.
 PERFETTO_TRACK_EVENT_STATIC_STORAGE_IN_NAMESPACE_WITH_ATTRS (guanaqo::trace,)

Function Documentation

◆ PERFETTO_TRACK_EVENT_STATIC_STORAGE_IN_NAMESPACE_WITH_ATTRS()

PERFETTO_TRACK_EVENT_STATIC_STORAGE_IN_NAMESPACE_WITH_ATTRS ( guanaqo::trace )