MCPcopy Create free account
hub / github.com/Compaile/ctrack / leaf_function

Function leaf_function

benchmark/ctrack_benchmark.cpp:88–93  ·  view source on GitHub ↗

Benchmark functions with predictable timing

Source from the content-addressed store, hash-verified

86
87// Benchmark functions with predictable timing
88void leaf_function(int depth)
89{
90 CTRACK_NAME("leaf_function");
91 // Busy wait for 1 microsecond (1000 ns)
92 busy_wait_ns(1000);
93}
94
95void level_3_function(int depth)
96{

Callers 1

level_3_functionFunction · 0.85

Calls 1

busy_wait_nsFunction · 0.85

Tested by

no test coverage detected