Cube is a generic set of tools for description and analysis of a multi-dimensional performance space consisting of the dimensions (i) performance metric, (ii) call path, and (iii) system resource. Each dimension can be represented as a tree, where non-leaf nodes of the tree can be collapsed or expanded to achieve the desired level of granularity. The Cube General purpose C++ library (CubeLib) is used by Score-P performance instrumentation and measurement infrastructure and by the Scalasca version 2.x trace analyzer (and other compatible tools) to process performance analysis results