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

HPCC-32947 Capture and report lookahead timings for project #19275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thorlcr/activities/project/thprojectslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CProjecStrandProcessor : public CThorStrandProcessor
}
STRAND_CATCH_NEXTROW()
{
ActivityTimer t(slaveTimerStats, timeActivities);
LookAheadTimer t(slaveTimerStats, timeActivities);
for (;;)
{
if (parent.queryAbortSoon())
Expand Down
12 changes: 11 additions & 1 deletion thorlcr/graph/thgraphslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ IStrandJunction *CThorStrandedActivity::getOutputStreams(CActivityBase &ctx, uns

unsigned __int64 CThorStrandedActivity::queryTotalCycles() const
{
unsigned __int64 total = 0;;
unsigned __int64 total = 0;
ForEachItemIn(i, strands)
{
CThorStrandProcessor &strand = strands.item(i);
Expand All @@ -864,6 +864,16 @@ unsigned __int64 CThorStrandedActivity::queryTotalCycles() const
return total;
}

unsigned __int64 CThorStrandedActivity::queryLookAheadCycles() const
{
unsigned __int64 total = 0;;
ForEachItemIn(i, strands)
{
CThorStrandProcessor &strand = strands.item(i);
total += strand.queryLookAheadCycles();
}
return total;
}
void CThorStrandedActivity::dataLinkSerialize(MemoryBuffer &mb) const
{
mb.append(getProgressCount());
Expand Down
1 change: 1 addition & 0 deletions thorlcr/graph/thgraphslave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ class graphslave_decl CThorStrandedActivity : public CSlaveActivity
// IThorDataLink
virtual IStrandJunction *getOutputStreams(CActivityBase &_ctx, unsigned idx, PointerArrayOf<IEngineRowStream> &streams, const CThorStrandOptions * consumerOptions, bool consumerOrdered, IOrderedCallbackCollection * orderedCallbacks) override;
virtual unsigned __int64 queryTotalCycles() const override;
virtual unsigned __int64 queryLookAheadCycles() const override;
virtual void dataLinkSerialize(MemoryBuffer &mb) const override;
virtual rowcount_t getProgressCount() const override;
};
Expand Down
Loading