NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::InMemoryTracer Class Referencefinal

Thread-safe tracer that retains events for tests and embedding applications. More...

#include <tracing.hpp>

Inheritance diagram for neuralplus::InMemoryTracer:
neuralplus::Tracer

Public Member Functions

void record (const TraceEvent &event) override
 Retains a copy of one event.
 
std::vector< TraceEventevents () const
 Returns a thread-safe snapshot of retained events.
 
void clear ()
 Removes all retained events.
 

Detailed Description

Thread-safe tracer that retains events for tests and embedding applications.

Member Function Documentation

◆ record()

void neuralplus::InMemoryTracer::record ( const TraceEvent event)
overridevirtual

Retains a copy of one event.

Implements neuralplus::Tracer.


The documentation for this class was generated from the following file: