Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pcm-sensor-server.cpp #791

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading