Charades
Functions | Variables
statistics.C File Reference

Definition of the Statistics class and associated methods/variables. More...

#include "statistics.h"
#include "scheduler.h"
#include <stdio.h>

Functions

Statisticsget_statistics ()
 Helper function for accessing the local Statistics object.
 
void registerStatsReduction ()
 Called during node init to register the stats reduction type.
 
CkReductionMsg * statsReduction (int nMsg, CkReductionMsg **msgs)
 Reducer function used by the Charm++ runtime when doing a stats reduction. More...
 

Variables

CkReduction::reducerType statsReductionType
 The type of the stats reduction used by the Charm++ runtime.
 

Detailed Description

Definition of the Statistics class and associated methods/variables.

Function Documentation

◆ statsReduction()

CkReductionMsg* statsReduction ( int  nMsg,
CkReductionMsg **  msgs 
)

Reducer function used by the Charm++ runtime when doing a stats reduction.

Parameters
nMsgthe number of messages to reduce
msgsan array of message pointers to the actual messages
Returns
a single message that is the reduction of the passed in messages