MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _ExecutionPlan_InitProfiling

Function _ExecutionPlan_InitProfiling

src/execution_plan/execution_plan.c:490–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488//------------------------------------------------------------------------------
489
490static void _ExecutionPlan_InitProfiling(OpBase *root) {
491 root->profile = root->consume;
492 root->consume = OpBase_Profile;
493 root->stats = rm_malloc(sizeof(OpStats));
494 root->stats->profileExecTime = 0;
495 root->stats->profileRecordCount = 0;
496
497 if(root->childCount) {
498 for(int i = 0; i < root->childCount; i++) {
499 OpBase *child = root->children[i];
500 _ExecutionPlan_InitProfiling(child);
501 }
502 }
503}
504
505static void _ExecutionPlan_FinalizeProfiling(OpBase *root) {
506 if(root->childCount) {

Callers 1

ExecutionPlan_ProfileFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected