Skip to content

Commit

Permalink
HPCC-32928 Capture and report start timings for stranded activities
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Nov 1, 2024
1 parent 4c31ec4 commit 2f53ee1
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;
stat_type startCycles = 0;
protected:
void onStartStrands();
public:
Expand Down

0 comments on commit 2f53ee1

Please sign in to comment.