LCOV - code coverage report
Current view: top level - src/tracing - memory_exporter.cpp (source / functions) Coverage Total Hit
Test: HPActor Coverage Lines: 69.2 % 13 9
Test Date: 2026-05-20 02:24:49 Functions: 66.7 % 3 2
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : #include <hpactor/tracing/memory_exporter.hpp>
       2                 :             : 
       3                 :             : namespace hpactor::tracing {
       4                 :             : 
       5                 :             : result<void>
       6                 :           2 : MemoryExporter::export_batch(std::span<const SpanRecord> batch) noexcept {
       7                 :           2 :     std::lock_guard<std::mutex> lock(mutex_);
       8                 :           2 :     spans_.insert(spans_.end(), batch.begin(), batch.end());
       9                 :           2 :     return result<void>::make();
      10                 :           2 : }
      11                 :             : 
      12                 :           1 : std::vector<SpanRecord> MemoryExporter::snapshot() const {
      13                 :           1 :     std::lock_guard<std::mutex> lock(mutex_);
      14                 :           1 :     return spans_;
      15                 :           1 : }
      16                 :             : 
      17                 :           0 : void MemoryExporter::clear() {
      18                 :           0 :     std::lock_guard<std::mutex> lock(mutex_);
      19                 :           0 :     spans_.clear();
      20                 :           0 : }
      21                 :             : 
      22                 :             : } // namespace hpactor::tracing
        

Generated by: LCOV version 2.0-1