Commit 450a80a2 by Jamie Madill

d3d11: Add a histogram to capture DLL loading time.

This should complete the breakdown of the time we spent in eglInitialize. BUG=angleproject:1014 BUG=436191 Change-Id: I3b44f10c56322924f9391a56973df5f439fa83bb Reviewed-on: https://chromium-review.googlesource.com/276268Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 39fcf263
......@@ -300,6 +300,8 @@ Renderer11::~Renderer11()
egl::Error Renderer11::initialize()
{
double loadDLLsBegin = ANGLEPlatformCurrent()->currentTime();
if (!mCompiler.initialize())
{
return egl::Error(EGL_NOT_INITIALIZED,
......@@ -334,6 +336,10 @@ egl::Error Renderer11::initialize()
}
#endif
double loadDLLsSec = ANGLEPlatformCurrent()->currentTime() - loadDLLsBegin;
int loadDLLsMS = static_cast<int>(loadDLLsSec * 1000);
ANGLE_HISTOGRAM_TIMES("GPU.ANGLE.Renderer11InitializeDLLsMS", loadDLLsMS);
HRESULT result = S_OK;
#ifdef _DEBUG
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment