MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_scale_begin

Function cbm_scale_begin

src/foundation/profile.c:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void cbm_scale_begin(cbm_scale_probe_t *probe, const char *phase, long total) {
90 if (!probe) {
91 return;
92 }
93 probe->phase = phase;
94 probe->total = total;
95 atomic_init(&probe->next_cp, 0);
96 for (int i = 0; i < CBM_SCALE_CHECKPOINTS; i++) {
97 probe->cp_us[i] = 0;
98 probe->cp_items[i] = 0;
99 }
100 cbm_clock_gettime(CLOCK_MONOTONIC, &probe->start);
101}
102
103void cbm_scale_tick(cbm_scale_probe_t *probe, long done) {
104 if (!probe || probe->total < SCALE_MIN_ITEMS) {

Callers 3

cbm_parallel_extract_exFunction · 0.85
cbm_parallel_resolveFunction · 0.85
test_diagnostics.cFile · 0.85

Calls 1

cbm_clock_gettimeFunction · 0.85

Tested by

no test coverage detected