Skip to content

Commit

Permalink
MemoryInfo: disable unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jan 11, 2017
1 parent 26eac4f commit 34b949b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Engine/MemoryInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ printAsRAM(U64 bytes)
return QCoreApplication::translate("MemoryInfo", "%1 byte(s)").arg( QLocale().toString( (uint)bytes ) );
}


#if 0 // not used for now
/**
* Returns the peak (maximum so far) resident set size (physical
* memory use) measured in bytes, or zero if the value cannot be
Expand Down Expand Up @@ -200,7 +202,9 @@ getPeakRSS( )
return (size_t)0L; /* Unsupported. */
#endif
}
#endif // 0

#if 0 // not used for now
/**
* Returns the current resident set size (physical memory use) measured
* in bytes, or zero if the value cannot be determined on this OS.
Expand Down Expand Up @@ -257,6 +261,8 @@ getCurrentRSS( )
return (size_t)0L; /* Unsupported. */
#endif
} // getCurrentRSS
#endif // 0


std::size_t
getAmountFreePhysicalRAM()
Expand Down
2 changes: 2 additions & 0 deletions Engine/MemoryInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ U64 getSystemTotalRAM_conditionnally();
// prints RAM value as KB, MB or GB
QString printAsRAM(U64 bytes);

#if 0 // not used for now
/**
* Returns the peak (maximum so far) resident set size (physical
* memory use) measured in bytes, or zero if the value cannot be
Expand All @@ -61,6 +62,7 @@ std::size_t getPeakRSS( );
* in bytes, or zero if the value cannot be determined on this OS.
*/
std::size_t getCurrentRSS( );
#endif // 0

std::size_t getAmountFreePhysicalRAM();

Expand Down

0 comments on commit 34b949b

Please sign in to comment.