| 488 | //------------------------------------------------------------------------------ |
| 489 | |
| 490 | static 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 | |
| 505 | static void _ExecutionPlan_FinalizeProfiling(OpBase *root) { |
| 506 | if(root->childCount) { |
no test coverage detected