Skip to content

Commit a1d7840

Browse files
committed
pcm-sensor-server: add new metrics DRAM Local percantage
1 parent b321706 commit a1d7840

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pcm-sensor-server.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ class JSONPrinter : Visitor
427427
PCM* pcm = PCM::getInstance();
428428
printCounter( "DRAM Writes", getBytesWrittenToMC ( before, after ) );
429429
printCounter( "DRAM Reads", getBytesReadFromMC ( before, after ) );
430+
431+
if (pcm->localMemoryRequestRatioMetricAvailable())
432+
printCounter( "DRAM Local Percentage", getLocalMemoryRequestRatio( before, after ) );
433+
430434
if(pcm->nearMemoryMetricsAvailable()){
431435
printCounter( "NM HitRate", getNMHitRate ( before, after ) );
432436
printCounter( "NM Hits", getNMHits ( before, after ) );
@@ -715,6 +719,10 @@ class PrometheusPrinter : Visitor
715719
addToHierarchy( "source=\"uncore\"" );
716720
printCounter( "DRAM Writes", getBytesWrittenToMC ( before, after ) );
717721
printCounter( "DRAM Reads", getBytesReadFromMC ( before, after ) );
722+
723+
if (pcm->localMemoryRequestRatioMetricAvailable())
724+
printCounter( "DRAM Local Percentage", getLocalMemoryRequestRatio( before, after ) );
725+
718726
if(pcm->nearMemoryMetricsAvailable()){
719727
printCounter( "NM Hits", getNMHits ( before, after ) );
720728
printCounter( "NM Misses", getNMMisses ( before, after ) );

0 commit comments

Comments
 (0)