MCPcopy Create free account
hub / github.com/DFHack/dfhack / record_coverage

Function record_coverage

plugins/timestream.cpp:276–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274//
275
276static void record_coverage(color_ostream &out) {
277 uint32_t coverage_slot = *cur_year_tick % NUM_COVERAGE_TICKS;
278 if (coverage_slot >= NUM_COVERAGE_TICKS)
279 return;
280 if (!tick_coverage[coverage_slot]) {
281 DEBUG(cycle,out).print("recording coverage for slot: {}", coverage_slot);
282 }
283 tick_coverage[coverage_slot] = true;
284}
285
286static float get_desired_timeskip(int32_t real_fps, int32_t target_fps) {
287 // minus 1 to account for the current frame

Callers 1

do_cycleFunction · 0.85

Calls 1

printMethod · 0.45

Tested by

no test coverage detected