• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / sdfglib / 18718471628

22 Oct 2025 01:51PM UTC coverage: 61.746% (-0.6%) from 62.358%
18718471628

push

github

web-flow
Merge pull request #288 from daisytuner/InstrumentationInfo

Instrumentation info

104 of 310 new or added lines in 20 files covered. (33.55%)

25 existing lines in 6 files now uncovered.

9746 of 15784 relevant lines covered (61.75%)

100.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/codegen/dispatchers/node_dispatcher.cpp
1
#include "sdfg/codegen/dispatchers/node_dispatcher.h"
2
#include "sdfg/codegen/instrumentation/instrumentation_info.h"
3

4
namespace sdfg {
5
namespace codegen {
6

7
NodeDispatcher::NodeDispatcher(
55✔
8
    LanguageExtension& language_extension,
9
    StructuredSDFG& sdfg,
10
    analysis::AnalysisManager& analysis_manager,
11
    structured_control_flow::ControlFlowNode& node,
12
    InstrumentationPlan& instrumentation_plan
13
)
14
    : node_(node), language_extension_(language_extension), sdfg_(sdfg), analysis_manager_(analysis_manager),
110✔
15
      instrumentation_plan_(instrumentation_plan) {};
165✔
16

17
bool NodeDispatcher::begin_node(PrettyPrinter& stream) { return false; };
30✔
18

19
void NodeDispatcher::end_node(PrettyPrinter& stream, bool applied) {};
30✔
20

NEW
21
InstrumentationInfo NodeDispatcher::instrumentation_info() const {
×
NEW
22
    return InstrumentationInfo(ElementType_Unknown, TargetType_SEQUENTIAL, -1, node_.element_id(), {});
×
UNCOV
23
};
×
24

25
void NodeDispatcher::
26
    dispatch(PrettyPrinter& main_stream, PrettyPrinter& globals_stream, CodeSnippetFactory& library_snippet_factory) {
30✔
27
    bool applied = begin_node(main_stream);
30✔
28

29
    if (this->instrumentation_plan_.should_instrument(node_)) {
30✔
NEW
30
        auto instrumentation_info = this->instrumentation_info();
×
NEW
31
        this->instrumentation_plan_.begin_instrumentation(node_, main_stream, language_extension_, instrumentation_info);
×
UNCOV
32
    }
×
33

34
    dispatch_node(main_stream, globals_stream, library_snippet_factory);
30✔
35

36
    if (this->instrumentation_plan_.should_instrument(node_)) {
30✔
NEW
37
        auto instrumentation_info = this->instrumentation_info();
×
NEW
38
        this->instrumentation_plan_.end_instrumentation(node_, main_stream, language_extension_, instrumentation_info);
×
UNCOV
39
    }
×
40

41
    end_node(main_stream, applied);
30✔
42
};
30✔
43

44
} // namespace codegen
45
} // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc