-
-
Notifications
You must be signed in to change notification settings - Fork 186
Improvements in profiler host processors #3114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Fix implementation of disposable pattern. - Now on dispose the file paths are output. - Message processor now flushes the file to ensure that message is written immediately. - Add missing set of clean-up steps in nanoCLR host.
WalkthroughThis pull request updates multiple components in the nanoFramework.nanoCLR.Host project. In the NanoClrHostBuilder class, the Build method now appends configured cleanup steps to the nanoCLRHost instance. Both the ProfilerLogFileProcessor and ProfilerMessageProcessor classes have been updated to include new private fields for storing the log file path and tracking disposal status. Their constructors, error handling, and disposal patterns have been refactored to use a protected virtual Changes
Sequence Diagram(s)sequenceDiagram
participant Builder as nanoCLRHostBuilder
participant Host as nanoCLRHost instance
Builder->>Host: Build()
Note right of Host: Append configured _cleanupSteps
Host-->>Builder: Return built nanoCLRHost
sequenceDiagram
participant Client as Caller
participant Processor as Profiler Processor
Client->>Processor: Dispose()
Processor->>Processor: Call Dispose(true)
alt Conditional cleanup
Processor->>Processor: Flush log writer (if applicable)
Processor->>Processor: Dispose sub-resources
end
Processor-->>Client: Disposal complete
Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
***NO_CI*** (cherry picked from commit 4d74775)
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist
Summary by CodeRabbit