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

Function cbm_scale_begin

src/foundation/profile.c:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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