-
Notifications
You must be signed in to change notification settings - Fork 10
agents: fix cont profiling timestamp calculation #302
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
|
""" WalkthroughThe changes update how timestamps and durations are calculated and validated for continuous profiles in a gRPC agent system. The agent now computes times relative to the process start, the test suite adds stricter timestamp checks, the mock gRPC server includes new timestamp fields in profile assets, and thread safety is improved in the continuous profiler by adding mutex locks around shared data accesses. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Suite
participant Agent as GrpcAgent
participant Server as Mock gRPC Server
Test->>Agent: Send profile data
Agent->>Agent: Compute start, end, duration (relative to process start)
Agent->>Server: Send profile asset with startTs, endTs
Server->>Server: Assign startTs, endTs to asset
Server->>Test: Return asset for validation
Test->>Test: Validate timestamps and duration
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)src/nsolid/continuous_profiler.cc (2)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai there's a new commit! |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@santigimeno Thanks for letting me know about the new commit! Let me check what's changed so I can review it properly. 🏁 Script executed: Length of output: 431 🏁 Script executed: Length of output: 1911 🏁 Script executed: Length of output: 94242 @santigimeno I see the new commit! This looks good - you've added important thread-safety improvements to the ContinuousProfiler implementation. The mutex locks you've added for The changes specifically address:
These thread-safety improvements complement the timestamp calculation fixes from your first commit nicely. |
juanarbol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
0d0f51e to
08d3929
Compare
PR-URL: #302 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
|
Landed in 9265d2f |
PR-URL: #302 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: #302 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: #302 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Summary by CodeRabbit