|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Memory access profiler for algorithm analysis. More...
#include <memory_profiler.hpp>
Classes | |
| struct | MissRates |
| Estimate cache miss rates (simplified model). More... | |
| struct | AccessDistribution |
| Estimate memory access distribution across cache levels. More... | |
Public Member Functions | |
| MemoryProfiler (const CacheConfig &config=CacheConfig()) | |
| void | reset () |
| Reset all statistics. | |
| void | recordRead (uint64_t bytes, AccessPattern pattern=AccessPattern::Sequential) |
| Record a read operation. | |
| void | recordWrite (uint64_t bytes, AccessPattern pattern=AccessPattern::Sequential) |
| Record a write operation. | |
| void | recordRegionRead (const std::string &name, uint64_t bytes, AccessPattern pattern=AccessPattern::Sequential) |
| Record access to a named region (for detailed tracking). | |
| void | recordRegionWrite (const std::string &name, uint64_t bytes, AccessPattern pattern=AccessPattern::Sequential) |
| void | setWorkingSetSize (uint64_t bytes) |
| Set working set size directly (for pre-computed analysis). | |
| uint64_t | totalReads () const |
| Get statistics. | |
| uint64_t | totalWrites () const |
| uint64_t | totalBytesRead () const |
| uint64_t | totalBytesWritten () const |
| uint64_t | totalBytes () const |
| uint64_t | workingSetSize () const |
| MemoryTier | estimatePrimaryTier () const |
| Estimate which cache level will serve most accesses. | |
| MissRates | estimateMissRates () const |
| AccessDistribution | estimateDistribution () const |
| double | estimateEnergyPJ () const |
| Estimate total memory energy in picojoules Uses simple cost model (can be replaced with EnergyCostModel integration). | |
| double | estimateEnergyUJ () const |
| Get energy estimate in microjoules. | |
| void | report (std::ostream &ostr) const |
| Report memory profile to stream. | |
| std::string | summary () const |
| Get one-line summary. | |
Memory access profiler for algorithm analysis.
|
inline |
|
inline |
|
inline |
Estimate total memory energy in picojoules Uses simple cost model (can be replaced with EnergyCostModel integration).
|
inline |
Get energy estimate in microjoules.
|
inline |
|
inline |
Estimate which cache level will serve most accesses.
|
inline |
Record a read operation.
|
inline |
Record access to a named region (for detailed tracking).
|
inline |
|
inline |
Record a write operation.
|
inline |
Report memory profile to stream.
|
inline |
Reset all statistics.
|
inline |
Set working set size directly (for pre-computed analysis).
|
inline |
Get one-line summary.
|
inline |
|
inline |
|
inline |
|
inline |
Get statistics.
|
inline |
|
inline |