MCPcopy Create free account
hub / github.com/DmitriBogdanov/UTL / main

Function main

examples/module_profiler/profiling_code_segment.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9void computation_5() { std::this_thread::sleep_for(100ms); }
10
11int main() {
12 // Profile a scope
13 UTL_PROFILER_SCOPE("Computation 1 - 5");
14 computation_1();
15 computation_2();
16
17 // Profile an expression
18 UTL_PROFILER("Computation 3") computation_3();
19
20 // Profile a code segment
21 UTL_PROFILER_BEGIN(comp_45, "Computation 4 - 5");
22 computation_4();
23 computation_5();
24 UTL_PROFILER_END(comp_45);
25}

Callers

nothing calls this directly

Calls 5

computation_1Function · 0.85
computation_2Function · 0.85
computation_3Function · 0.85
computation_4Function · 0.85
computation_5Function · 0.85

Tested by

no test coverage detected