Skip to content
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

Merged
merged 2 commits into from
Feb 5, 2020
Merged

642 simplify trace pairs #642

merged 2 commits into from
Feb 5, 2020

Conversation

pnstickne
Copy link
Contributor

No description provided.

trace::TraceEventIDType event = envelopeGetTraceEvent(msg->env);

fmt::print("dataMessageHandler: id={}, ep={}\n", msg->sub_han, ep);
trace::TraceProcessingTag processing_tag;
Copy link
Contributor Author

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;
{
Copy link
Contributor Author

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.

);
// This is current contract expectations; however it precludes async closing.
vtAssert(
open_events_.top().ep == ep and
Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lost comment..

@codecov
Copy link

codecov bot commented Dec 21, 2019

Codecov Report

Merging #642 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #642   +/-   ##
========================================
  Coverage    83.25%   83.25%           
========================================
  Files          310      310           
  Lines        10398    10398           
========================================
  Hits          8657     8657           
  Misses        1741     1741
Impacted Files Coverage Δ
src/vt/runnable/collection.impl.h 100% <ø> (ø) ⬆️
src/vt/runnable/general.impl.h 83.87% <ø> (ø) ⬆️

@pnstickne pnstickne marked this pull request as ready for review January 14, 2020 04:59
@@ -91,13 +111,24 @@ struct Trace {
std::string const& in_dir_name = ""
);

void beginProcessing(
/// Initiate a paired event.
Copy link
Contributor Author

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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use reference?

@lifflander lifflander force-pushed the 642-simplify-trace-pairs branch from b7483bf to f75ec43 Compare January 28, 2020 05:34
pnstickne pushed a commit that referenced this pull request Feb 1, 2020
- 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.
pnstickne added a commit that referenced this pull request Feb 1, 2020
- 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.
@pnstickne pnstickne force-pushed the 642-simplify-trace-pairs branch from f75ec43 to cc23003 Compare February 1, 2020 02:29
@pnstickne
Copy link
Contributor Author

@lifflander Bump. All clean. All rebased.

lifflander and others added 2 commits February 5, 2020 13:36
- 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.
@lifflander lifflander force-pushed the 642-simplify-trace-pairs branch from cc23003 to e06e58a Compare February 5, 2020 21:36
@lifflander lifflander merged commit d1fcf8b into develop Feb 5, 2020
pnstickne added a commit that referenced this pull request Feb 8, 2020
- 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.
lifflander pushed a commit that referenced this pull request Feb 9, 2020
- 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.
lifflander added a commit that referenced this pull request Feb 13, 2020
- 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.
lifflander pushed a commit that referenced this pull request Feb 13, 2020
- 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.
lifflander pushed a commit that referenced this pull request Feb 13, 2020
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants