Skip to content

Commit

Permalink
Merge pull request #19259 from shamser/issue32928
Browse files Browse the repository at this point in the history
HPCC-32928 Capture and report start timings for stranded activities

Reviewed-by: Jake Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Nov 18, 2024
2 parents ccdd99c + 47c4e05 commit 185486e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thorlcr/graph/thgraphslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ void CThorStrandedActivity::strandedStop()
//For some reason gcc doesn't let you specify a function as pure virtual and define it at the same time.
void CThorStrandedActivity::start()
{
SimpleActivityTimer t(startCycles, timeActivities);
CSlaveActivity::start();
startJunction(splitter);
onStartStrands();
Expand Down Expand Up @@ -855,7 +856,7 @@ IStrandJunction *CThorStrandedActivity::getOutputStreams(CActivityBase &ctx, uns

unsigned __int64 CThorStrandedActivity::queryTotalCycles() const
{
unsigned __int64 total = 0;;
unsigned __int64 total = startCycles;
ForEachItemIn(i, strands)
{
CThorStrandProcessor &strand = strands.item(i);
Expand Down
1 change: 1 addition & 0 deletions thorlcr/graph/thgraphslave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ class graphslave_decl CThorStrandedActivity : public CSlaveActivity
Owned<IStrandJunction> splitter;
Owned<IStrandJunction> sourceJunction; // A junction applied to the output of a source activity
std::atomic<unsigned> active;
unsigned __int64 startCycles = 0;
protected:
void onStartStrands();
public:
Expand Down

0 comments on commit 185486e

Please sign in to comment.