Skip to content

Commit

Permalink
Merge pull request #791 from intel/rdementi-disable-freq-metrics-for-…
Browse files Browse the repository at this point in the history
…prometheus

Update pcm-sensor-server.cpp
  • Loading branch information
rdementi authored Jul 17, 2024
2 parents 38aaf6c + 6e19613 commit 4c5e585
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pcm-sensor-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,10 @@ class PrometheusPrinter : Visitor
printCounter( "L3 Cache Occupancy", getL3CacheOccupancy ( after ) );
printCounter( "Invariant TSC", getInvariantTSC ( before, after ) );
printCounter( "SMI Count", getSMICount ( before, after ) );

#if 0
// disabling this metric for a moment due to https://github.com/intel/pcm/issues/789
printCounter( "Core Frequency", getActiveAverageFrequency ( before, after ) );
#endif
//DBG( 2, "Invariant TSC before=", before.InvariantTSC, ", after=", after.InvariantTSC, ", difference=", after.InvariantTSC-before.InvariantTSC );

printCounter( "Thermal Headroom", after.getThermalHeadroom() );
Expand Down Expand Up @@ -744,11 +746,14 @@ class PrometheusPrinter : Visitor
printCounter( "PP0 Joules Consumed", getConsumedJoules ( 0, before, after ) );
printCounter( "PP1 Joules Consumed", getConsumedJoules ( 1, before, after ) );
printCounter( "DRAM Joules Consumed", getDRAMConsumedJoules ( before, after ) );
#if 0
// disabling these metrics for a moment due to https://github.com/intel/pcm/issues/789
auto uncoreFrequencies = getUncoreFrequencies( before, after );
for (size_t i = 0; i < uncoreFrequencies.size(); ++i)
{
printCounter( std::string("Uncore Frequency Die ") + std::to_string(i), uncoreFrequencies[i]);
}
#endif
uint32 i = 0;
for ( ; i <= ( PCM::MAX_C_STATE ); ++i ) {
std::stringstream s;
Expand Down

0 comments on commit 4c5e585

Please sign in to comment.