Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Add pipe stage name to thread while executing #1097

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

To make it easier to identify which threads are performing which tasks, pipeline will add the stage name to the end of the thread name while the stage is executing. This makes it much easier to use tools like VisualVM to explore performance.

@@ -49,7 +49,7 @@

Pipeline(
final Pipe<?> inputPipe,
final Collection<Runnable> stages,
final Collection<Stage> stages,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why Collection? Does the order of the stages matter? That would imply List.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't matter at this point - we're going to execute them all in their own threads anyway. The order of stages is really enforced by the way the pipes connect them.

@ajsutton ajsutton merged commit 04e7de5 into PegaSysEng:master Mar 14, 2019
@ajsutton ajsutton deleted the pipeline-thread-names branch March 14, 2019 00:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants