[8.2] [MOD-12627] Add Debug Support for FT.PROFILE Command (#7510)#7574
Merged
[8.2] [MOD-12627] Add Debug Support for FT.PROFILE Command (#7510)#7574
FT.PROFILE Command (#7510)#7574Conversation
* imp debug profile for SA: introduce in mocule.h: RSProfileCommandImp RSProfileCommand calls RSProfileCommandImp(isDebug = false) for regular execution ProfileCommandCommand_DebugWrapper mcalls it with isDebug=true and skips _FT.DEBUG introduce entrypoint for _FT.DEBUG FT.PROFILE in debug_commands: ProfileCommandCommand_DebugWrapper RSProfileCommandImp calls DEBUG_execCommandCommon is its debug _recursiveProfilePrint skips printing debug RP * pass is debug instead of extracting: module.h: replace declaration: DistAggregateCommand DistSearchCommand with Imp version that receives isDebug expose ProfileCommandHandlerImp align debug_commands introducr _FT.DEBUG _FT.PROFILE * add test for cluster * return res * augi fixes * fix spell check * fix for real * fix test * skip tests according to env * revrt test_profile changes * reove changes from internal_only (cherry picked from commit 00ca3cf)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.2 #7574 +/- ##
==========================================
- Coverage 89.48% 89.45% -0.03%
==========================================
Files 253 253
Lines 40990 41009 +19
Branches 3725 3725
==========================================
+ Hits 36679 36684 +5
- Misses 4262 4276 +14
Partials 49 49
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lerman25
approved these changes
Nov 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport #7510 to 8.2
Note
Add debug support for
FT.PROFILE(standalone and cluster) and refactor distributed handlers to enable debug execution, with profiling safety tweaks and tests.FT.PROFILEviaRSProfileCommandImpand debug wrappers (_FT.PROFILE, shard variants).DEBUG_execCommandCommonto run SEARCH/AGGREGATE/PROFILE with debug params.ResultProcessortypes in profile printer.DistSearchCommand/DistAggregateCommandinto*Imp(..., bool isDebug)to toggle debug handlers; update callers.ProfileCommandHandlerImptoDist*Imp/local based on shards and debug flag.RP_MAXfor non-debug and add debug-only types (RP_TIMEOUT,RP_CRASH,RP_MAX_DEBUG).EXEC_DEBUG, handler function pointer), includemodule.h.FT.PROFILE/_FT.PROFILEunder_FT.DEBUG; add shard handlers.countFlatElements.Written by Cursor Bugbot for commit 54d52a8. This will update automatically on new commits. Configure here.