diff --git a/drape/support_manager.cpp b/drape/support_manager.cpp index 3aad71859a..9a2e46973d 100644 --- a/drape/support_manager.cpp +++ b/drape/support_manager.cpp @@ -3,6 +3,8 @@ #include "base/logging.hpp" +#include "3party/Alohalytics/src/alohalytics.h" + namespace dp { @@ -12,6 +14,15 @@ void SupportManager::Init() string const version = GLFunctions::glGetString(gl_const::GLVersion); LOG(LINFO, ("Renderer =", renderer, "Version =", version)); + // On Android the engine may be recreated. Here we guarantee that GPU info is sent once. + static bool gpuInfoSent = false; + if (!gpuInfoSent) + { + alohalytics::TStringMap details {{ "renderer", renderer }}; + alohalytics::Stats::Instance().LogEvent("GPU", details); + gpuInfoSent = true; + } + m_isSamsungGoogleNexus = (renderer == "PowerVR SGX 540" && version.find("GOOGLENEXUS.ED945322") != string::npos); if (m_isSamsungGoogleNexus) LOG(LINFO, ("Samsung Google Nexus detected."));