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

#2147: fix incorrect order of parameters for call to beginProcessing #2148

Merged
merged 9 commits into from
May 23, 2023

Conversation

nmm0
Copy link
Collaborator

@nmm0 nmm0 commented May 15, 2023

Closes #2147

I'm going to see if it is possible to add some tests, since we don't have any trace tests.

@github-actions
Copy link

github-actions bot commented May 15, 2023

Pipelines results

PR tests (gcc-12, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-9, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-13, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-12, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (gcc-9, ubuntu, mpich, zoltan, json schema test)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (gcc-10, ubuntu, openmpi, no LB)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-11, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-14, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (clang-10, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (gcc-11, ubuntu, mpich, trace runtime, coverage)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (intel icpc, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (gcc-8, ubuntu, mpich, address sanitizer)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


PR tests (nvidia cuda 11.2, gcc-9, ubuntu, mpich)

Build for f8a80b5 (2023-05-18 19:59:16 UTC)

Compilation - successful

Testing - passed

Build log


@@ -359,7 +359,7 @@ TraceProcessingTag Trace::beginProcessing(
);

if (theConfig()->vt_trace_memory_usage) {
addMemoryEvent(theMemUsage()->getFirstUsage());
addMemoryEvent(theMemUsage()->getFirstUsage(), time);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this so that the recorded events would be consistent (otherwise it uses the current time)

@@ -404,7 +404,7 @@ void Trace::endProcessing(
);

if (theConfig()->vt_trace_memory_usage) {
addMemoryEvent(theMemUsage()->getFirstUsage());
addMemoryEvent(theMemUsage()->getFirstUsage(), time);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same as above

@nmm0 nmm0 marked this pull request as ready for review May 16, 2023 22:55
Comment on lines +255 to +272
/**
* \brief Get the number of recorded trace events
*
* \return the number of trace events
*/
std::size_t getNumTraceEvents() const {
return traces_.size();
}

/**
* @brief Get the last recorded trace event
*
* @return the last recorded trace event
*/
const LogType* getLastTraceEvent() const noexcept {
return traces_.empty() ? nullptr : &traces_.back();
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These functions are mostly used for testing but might be useful in other circumstances

@@ -349,7 +367,7 @@ struct TraceLite {
*
* \return computed bytes used for tracing (lower bound)
*/
std::size_t getTracesSize() const {
std::size_t getTracesSize() const noexcept {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I driveby-changed this to noexcept because it should be

@PhilMiller
Copy link
Member

Should the PR description be made a bit more comprehensive?

@PhilMiller
Copy link
Member

Trivial remarks aside, this looks good to me.

@nmm0 nmm0 force-pushed the 2147-invalid-trace-timings branch from f164f59 to f8a80b5 Compare May 18, 2023 19:59
@nlslatt nlslatt merged commit b89e422 into develop May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid trace timings
5 participants