blob: 9857eb111b2c3da6d8d40f5728630097c1cb1d0e [file] [log] [blame]
#include <tracing/backend.h>
#include <memory>
namespace chip {
namespace Tracing {
namespace Insights {
/// A Backend that outputs data to chip logging.
///
/// Structured data is formatted as json strings.
class ESP32Backend : public ::chip::Tracing::Backend
{
public:
ESP32Backend() = default;
void TraceBegin(const char * label, const char * group) override;
void TraceEnd(const char * label, const char * group) override;
/// Trace a zero-sized event
void TraceInstant(const char * label, const char * group) override;
void LogMessageSend(MessageSendInfo &) override;
void LogMessageReceived(MessageReceivedInfo &) override;
void LogNodeLookup(NodeLookupInfo &) override;
void LogNodeDiscovered(NodeDiscoveredInfo &) override;
void LogNodeDiscoveryFailed(NodeDiscoveryFailedInfo &) override;
};
} // namespace Insights
} // namespace Tracing
} // namespace chip