|
| constexpr | Heatmap ()=default |
| |
| | Heatmap (Mapping mapping) |
| |
| template<typename... Args> |
| | Heatmap (Args &&... innerArgs) |
| |
| constexpr auto | blobSize (size_type blobIndex) const -> size_type |
| |
| template<std::size_t... RecordCoords, typename Blobs > |
| auto | compute (ArrayIndex ai, RecordCoord< RecordCoords... > rc, Blobs &blobs) const -> decltype(auto) |
| |
| auto | blockHitsSize (size_type forBlobI) const -> size_type |
| |
| template<typename Blobs > |
| auto | blockHitsPtr (size_type forBlobI, Blobs &blobs) const -> CopyConst< Blobs, CountType > * |
| |
| template<typename Blobs , typename OStream > |
| void | writeGnuplotDataFileAscii (const Blobs &blobs, OStream &&os, bool trimEnd=true, std::size_t wrapAfterBlocks=64) const |
| |
| template<typename Blobs , typename OStream > |
| void | writeGnuplotDataFileBinary (const Blobs &blobs, OStream &&os, bool trimEnd=true, std::size_t afterBlobRoundUpTo=64) const |
| |
template<typename Mapping, typename Mapping::ArrayExtents::value_type Granularity = 1, typename TCountType = std::size_t>
struct llama::mapping::Heatmap< Mapping, Granularity, TCountType >
Forwards all calls to the inner mapping. Counts all accesses made to blocks inside the blobs, allowing to extract a heatmap.
- Template Parameters
-
| Mapping | The type of the inner mapping. |
| Granularity | The granularity in bytes on which to could accesses. A value of 1 counts every byte. individually. A value of e.g. 64, counts accesses per 64 byte block. |
| TCountType | Data type used to count the number of accesses. Atomic increments must be supported for this type. |
Definition at line 31 of file Heatmap.hpp.
template<typename Mapping , typename Mapping::ArrayExtents::value_type Granularity = 1, typename TCountType = std::size_t>
template<typename Blobs , typename OStream >
| void llama::mapping::Heatmap< Mapping, Granularity, TCountType >::writeGnuplotDataFileAscii |
( |
const Blobs & |
blobs, |
|
|
OStream && |
os, |
|
|
bool |
trimEnd = true, |
|
|
std::size_t |
wrapAfterBlocks = 64 |
|
) |
| const |
|
inline |
Writes a data file suitable for gnuplot containing the heatmap data. You can use the script provided by gnuplotScript to plot this data file.
- Parameters
-
| blobs | The blobs of the view containing this mapping |
| os | The stream to write the data to. Should be some form of std::ostream. |
Definition at line 144 of file Heatmap.hpp.