Skip to content

Commit

Permalink
Changes following review
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Jul 11, 2024
1 parent 57edb3c commit 6541079
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion system/jlib/jstats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ static const constexpr StatisticMeta statsMetaData[StMax] = {
{ NUMSTAT(MatchRightRowsMax), "The largest number of right rows in a join group" },
{ NUMSTAT(MatchCandidates), "The number of candidate combinations of left and right rows forming join groups" },
{ NUMSTAT(MatchCandidatesMax), "The largest number of candidate combinations of left and right rows in a single group" },
{ NUMSTAT(Threads), "The number of threads (strands) used by activity" },
{ NUMSTAT(Threads), "The number of threads used by activity" },
};

static MapStringTo<StatisticKind, StatisticKind> statisticNameMap(true);
Expand Down
2 changes: 1 addition & 1 deletion thorlcr/graph/thgraphslave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class graphslave_decl CThorStrandedActivity : public CSlaveActivity
protected:
void onStartStrands();
public:
CThorStrandedActivity(CGraphElementBase *container, const StatisticsMapping &statsMapping = strandedActivityStatistics)
CThorStrandedActivity(CGraphElementBase *container, const StatisticsMapping &statsMapping = basicActivityStatistics)
: CSlaveActivity(container, statsMapping), strandOptions(*container), active(0)
{
}
Expand Down
4 changes: 1 addition & 3 deletions thorlcr/master/thactivitymaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class CGenericMasterGraphElement : public CMasterGraphElement
case TAKcase:
case TAKchildcase:
case TAKdegroup:
case TAKproject:
case TAKprefetchproject:
case TAKprefetchcountproject:
case TAKxmlparse:
Expand Down Expand Up @@ -208,9 +209,6 @@ class CGenericMasterGraphElement : public CMasterGraphElement
case TAKemptyaction:
ret = new CMasterActivity(this);
break;
case TAKproject:
ret = new CMasterActivity(this, strandedActivityStatistics);
break;
case TAKsplit:
ret = new CMasterActivity(this, nsplitterActivityStatistics);
break;
Expand Down
3 changes: 1 addition & 2 deletions thorlcr/thorutil/thormisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ static Owned<IMPtagAllocator> ClusterMPAllocator;
// stat. mappings shared between master and slave activities
const StatisticsMapping spillStatistics({StTimeSpillElapsed, StTimeSortElapsed, StNumSpills, StSizeSpillFile, StSizePeakTempDisk});
const StatisticsMapping soapcallStatistics({StTimeSoapcall});
const StatisticsMapping basicActivityStatistics({StTimeTotalExecute, StTimeLocalExecute, StTimeBlocked});
const StatisticsMapping strandedActivityStatistics({StNumThreads}, basicActivityStatistics);
const StatisticsMapping basicActivityStatistics({StTimeTotalExecute, StTimeLocalExecute, StTimeBlocked, StNumThreads});
const StatisticsMapping groupActivityStatistics({StNumGroups, StNumGroupMax}, basicActivityStatistics);
const StatisticsMapping hashJoinActivityStatistics({StNumLeftRows, StNumRightRows}, basicActivityStatistics);
const StatisticsMapping indexReadFileStatistics({}, diskReadRemoteStatistics, jhtreeCacheStatistics);
Expand Down
1 change: 0 additions & 1 deletion thorlcr/thorutil/thormisc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ extern graph_decl const StatisticsMapping spillStatistics;
extern graph_decl const StatisticsMapping jhtreeCacheStatistics;
extern graph_decl const StatisticsMapping soapcallStatistics;
extern graph_decl const StatisticsMapping basicActivityStatistics;
extern graph_decl const StatisticsMapping strandedActivityStatistics;
extern graph_decl const StatisticsMapping groupActivityStatistics;
extern graph_decl const StatisticsMapping hashJoinActivityStatistics;
extern graph_decl const StatisticsMapping indexReadActivityStatistics;
Expand Down

0 comments on commit 6541079

Please sign in to comment.