SL-14862 - more types of UI usage logs
parent
083b4aa6cb
commit
dd89dec893
|
|
@ -47,6 +47,7 @@
|
|||
#include "llnotificationsutil.h"
|
||||
#include "llrender.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "lluiusage.h"
|
||||
#include "llhelp.h"
|
||||
#include "lldockablefloater.h"
|
||||
#include "llviewereventrecorder.h"
|
||||
|
|
@ -437,6 +438,13 @@ BOOL LLButton::handleMouseDown(S32 x, S32 y, MASK mask)
|
|||
setFocus(TRUE);
|
||||
}
|
||||
|
||||
if (!mFunctionName.empty())
|
||||
{
|
||||
LL_DEBUGS("UIUsage") << "calling mouse down function " << mFunctionName << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand(mFunctionName);
|
||||
LLUIUsage::instance().logWidget(getPathname());
|
||||
}
|
||||
|
||||
/*
|
||||
* ATTENTION! This call fires another mouse down callback.
|
||||
* If you wish to remove this call emit that signal directly
|
||||
|
|
|
|||
|
|
@ -429,6 +429,7 @@ void LLUICtrl::onCommit()
|
|||
{
|
||||
LL_DEBUGS("UIUsage") << "calling commit function " << mFunctionName << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand(mFunctionName);
|
||||
LLUIUsage::instance().logWidget(getPathname());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,11 +47,19 @@ std::string LLUIUsage::sanitized(const std::string& s)
|
|||
void LLUIUsage::logFloater(const std::string& floater)
|
||||
{
|
||||
mFloaterCounts[sanitized(floater)]++;
|
||||
LL_DEBUGS("UIUsage") << "floater " << floater << LL_ENDL;
|
||||
}
|
||||
|
||||
void LLUIUsage::logCommand(const std::string& command)
|
||||
{
|
||||
mCommandCounts[sanitized(command)]++;
|
||||
LL_DEBUGS("UIUsage") << "command " << command << LL_ENDL;
|
||||
}
|
||||
|
||||
void LLUIUsage::logWidget(const std::string& w)
|
||||
{
|
||||
mWidgetCounts[sanitized(w)]++;
|
||||
LL_DEBUGS("UIUsage") << "widget " << w << LL_ENDL;
|
||||
}
|
||||
|
||||
LLSD LLUIUsage::asLLSD() const
|
||||
|
|
@ -65,6 +73,10 @@ LLSD LLUIUsage::asLLSD() const
|
|||
{
|
||||
result["commands"][it.first] = LLSD::Integer(it.second);
|
||||
}
|
||||
for (auto const& it : mWidgetCounts)
|
||||
{
|
||||
result["widgets"][it.first] = LLSD::Integer(it.second);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,10 +41,12 @@ public:
|
|||
static std::string sanitized(const std::string& s);
|
||||
void logFloater(const std::string& floater);
|
||||
void logCommand(const std::string& command);
|
||||
void logWidget(const std::string& w);
|
||||
LLSD asLLSD() const;
|
||||
private:
|
||||
std::map<std::string,U32> mFloaterCounts;
|
||||
std::map<std::string,U32> mCommandCounts;
|
||||
std::map<std::string,U32> mWidgetCounts;
|
||||
};
|
||||
|
||||
#endif // LLUIUIUSAGE.h
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@
|
|||
#include "llmultigesture.h"
|
||||
#include "llui.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
//
|
||||
// Globals
|
||||
|
|
@ -566,6 +567,8 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL
|
|||
// as soon as we say something, we no longer care about teaching the user
|
||||
// how to chat
|
||||
gWarningSettings.setBOOL("FirstOtherChatBeforeUser", FALSE);
|
||||
|
||||
LLUIUsage::instance().logCommand("Chat.Send"); // Pseudo-command
|
||||
|
||||
// Look for "/20 foo" channel chats.
|
||||
S32 channel = 0;
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@
|
|||
#include "llviewerchat.h"
|
||||
#include "lltranslate.h"
|
||||
#include "llautoreplace.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
S32 LLFloaterIMNearbyChat::sLastSpecialChatChannel = 0;
|
||||
|
||||
|
|
@ -697,6 +698,7 @@ void LLFloaterIMNearbyChat::sendChatFromViewer(const std::string &utf8text, ECha
|
|||
|
||||
void LLFloaterIMNearbyChat::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Chat.Send"); // pseuo-command
|
||||
// Look for "/20 foo" channel chats.
|
||||
S32 channel = 0;
|
||||
LLWString out_text = stripChannelNumber(wtext, &channel);
|
||||
|
|
|
|||
|
|
@ -190,6 +190,8 @@ LLPointer<LLViewerFetchedTexture> LLWorldMipmap::loadObjectsTile(U32 grid_x, U32
|
|||
//LL_INFOS("WorldMap") << "LLWorldMipmap::loadObjectsTile(), URL = " << imageurl << LL_ENDL;
|
||||
|
||||
LLPointer<LLViewerFetchedTexture> img = LLViewerTextureManager::getFetchedTextureFromUrl(imageurl, FTT_MAP_TILE, TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE);
|
||||
LL_INFOS("MAPURL") << "fetching map tile from " << imageurl << LL_ENDL;
|
||||
|
||||
img->setBoostLevel(LLGLTexture::BOOST_MAP);
|
||||
|
||||
// Return the smart pointer
|
||||
|
|
|
|||
Loading…
Reference in New Issue