MCPcopy Create free account
hub / github.com/Niko1221/Strata / window_commit

Function window_commit

engine/metal/src/engine/window.cpp:4034–4039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4032 return g_the_window->slot_copy(into_slot, slot, upto, kv_only, err);
4033}
4034bool window_commit(void* w, int n_keep, std::string& err) {
4035 const double t0 = now_ms();
4036 const bool ok = ((Window*) w)->commit(n_keep, err);
4037 ((Window*) w)->prof_add(false, now_ms() - t0);
4038 return ok;
4039}
4040bool window_copy_logits(void* w, int t, float* host) { return ((Window*) w)->copy_logits(t, host); }
4041const float* window_logits(void* w, int t) { return ((Window*) w)->logits_row(t); }
4042

Callers 3

commitMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 3

prof_addMethod · 0.80
now_msFunction · 0.70
commitMethod · 0.45

Tested by

no test coverage detected