Histogram.h

class Cubism::Util::Histogram : public Cubism::Util::Sampler

MPI profiling using histograms.

Collects samples for a profiled quantity of interest on individual ranks. Can be used to detect inhomogeneities among MPI ranks.

Public Functions

inline Histogram(const MPI_Comm comm, const std::string &name, const bool active = true)

Main histogram constructor.

Extends the Sampler.h class with MPI consolidation during destruction of the object. The consolidation generates a binary file that can be post-processed using the histbin tool. The activator switch can be used to disable sample collection for large scale runs. The size of the binary files can become large depending on the number of ranks involved and the number of different quantities that are being sampled.

Parameters
  • comm: MPI communicator used for the profiling

  • name: Name of the histogram

  • active: Activator switch