Bug 917496 - Disable GPUAdapterReporter because its values are frequently bogus. r=Hughman.

--HG--
extra : rebase_source : ae3bbbc142dfcf7101aaac94acc52e67e68e97fd
This commit is contained in:
Nicholas Nethercote 2013-11-05 14:01:24 -08:00
parent b75982ecc9
commit fbfefcc32a
2 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,9 @@
* Windows 8 RC SDK. The work for this file itself was based on the one in ProcessHacker at
* http://processhacker.svn.sourceforge.net/viewvc/processhacker/2.x/trunk/plugins/ExtendedTools/d3dkmt.h?revision=4758&view=markup
* For more details see Mozilla Bug 689870.
* [Bug 917496 indicates that some of these structs may not match reality, and
* therefore should not be trusted. See the reference to bug 917496 in
* gfxWindowsPlatform.cpp.]
*/
typedef struct _D3DKMTQS_COUNTER

View File

@ -385,13 +385,16 @@ gfxWindowsPlatform::gfxWindowsPlatform()
UpdateRenderMode();
mGPUAdapterReporter = new GPUAdapterReporter();
NS_RegisterMemoryReporter(mGPUAdapterReporter);
// This reporter is disabled because it frequently gives bogus values. See
// bug 917496.
//mGPUAdapterReporter = new GPUAdapterReporter();
//NS_RegisterMemoryReporter(mGPUAdapterReporter);
mGPUAdapterReporter = nullptr;
}
gfxWindowsPlatform::~gfxWindowsPlatform()
{
NS_UnregisterMemoryReporter(mGPUAdapterReporter);
//NS_UnregisterMemoryReporter(mGPUAdapterReporter);
mDeviceManager = nullptr;