-
Notifications
You must be signed in to change notification settings - Fork 9
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
642 simplify trace pairs #642
Conversation
trace::TraceEventIDType event = envelopeGetTraceEvent(msg->env); | ||
|
||
fmt::print("dataMessageHandler: id={}, ep={}\n", msg->sub_han, ep); | ||
trace::TraceProcessingTag processing_tag; |
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.
Each begin only requires the processing tag to close.
Once/if the open event stack is removed it can be used to support asynchronous paired events..
#if backend_check_enabled(trace_enabled) | ||
#if backend_check_enabled(trace_enabled) | ||
trace::TraceProcessingTag processing_tag; | ||
{ |
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.
{..} to uniformly reduce variable scopes, as such as are no longer used/required.
src/vt/trace/trace.cc
Outdated
); | ||
// This is current contract expectations; however it precludes async closing. | ||
vtAssert( | ||
open_events_.top().ep == ep and |
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.
End goal might be to remove the open event stack and re-compose on the target side only.
|
||
// Already added to traces |
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.
Lost comment..
Codecov Report
@@ Coverage Diff @@
## develop #642 +/- ##
========================================
Coverage 83.25% 83.25%
========================================
Files 310 310
Lines 10398 10398
========================================
Hits 8657 8657
Misses 1741 1741
|
@@ -91,13 +111,24 @@ struct Trace { | |||
std::string const& in_dir_name = "" | |||
); | |||
|
|||
void beginProcessing( | |||
/// Initiate a paired event. |
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.
Check Doxygen format used for VT.
/// Finalize a paired event. | ||
/// The processing_tag value comes from beginProcessing. | ||
void endProcessing( | ||
TraceProcessingTag processing_tag, |
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.
Use reference?
b7483bf
to
f75ec43
Compare
- No need (or desired ability) to supply all stuff AGAIN on and end processing.. and end processing tag must always mirror that of a start processing tag currently. If there was DIFFERENT information to include, other than a timestamp, that can be re-explored.
- As all core usages pass in exactly the same values, as expected 'everywhere', the usages have been updated to work with the single processing tag.
f75ec43
to
cc23003
Compare
@lifflander Bump. All clean. All rebased. |
- No need (or desired ability) to supply all stuff AGAIN on and end processing.. and end processing tag must always mirror that of a start processing tag currently. If there was DIFFERENT information to include, other than a timestamp, that can be re-explored.
- As all core usages pass in exactly the same values, as expected 'everywhere', the usages have been updated to work with the single processing tag.
cc23003
to
e06e58a
Compare
- Was incorrectly guarding 'event type' == 0, which CAN be true.. ..even if it probably should be the case. Now guards against the 'entry id' itself.
- Was incorrectly guarding 'event type' == 0, which CAN be true.. ..even if it probably should be the case. Now guards against the 'entry id' itself.
- No need (or desired ability) to supply all stuff AGAIN on and end processing.. and end processing tag must always mirror that of a start processing tag currently. If there was DIFFERENT information to include, other than a timestamp, that can be re-explored.
- As all core usages pass in exactly the same values, as expected 'everywhere', the usages have been updated to work with the single processing tag.
- Was incorrectly guarding 'event type' == 0, which CAN be true.. ..even if it probably should be the case. Now guards against the 'entry id' itself.
No description provided.