Merge remote-tracking branch 'origin/SL-18119' into DRTVWR-548-maint-N
commit
26c8883bb7
|
|
@ -30,7 +30,7 @@
|
|||
#include "llerror.h"
|
||||
|
||||
// maximum reference count before sounding memory leak alarm
|
||||
const S32 gMaxRefCount = 65536;
|
||||
const S32 gMaxRefCount = S32_MAX;
|
||||
|
||||
LLRefCount::LLRefCount(const LLRefCount& other)
|
||||
: mRef(0)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@
|
|||
#include "stringize.h"
|
||||
#include "boost/foreach.hpp"
|
||||
#include "llcorehttputil.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
using namespace LLAvatarAppearanceDefines;
|
||||
|
||||
|
|
@ -574,6 +575,8 @@ void LLAgent::ageChat()
|
|||
//-----------------------------------------------------------------------------
|
||||
void LLAgent::moveAt(S32 direction, bool reset)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Agent.MoveAt");
|
||||
|
||||
mMoveTimer.reset();
|
||||
LLFirstUse::notMoving(false);
|
||||
|
||||
|
|
@ -4026,6 +4029,7 @@ void LLAgent::startTeleportRequest()
|
|||
}
|
||||
if (hasPendingTeleportRequest())
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Agent.StartTeleportRequest");
|
||||
mTeleportCanceled.reset();
|
||||
if (!isMaturityPreferenceSyncedWithServer())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
#include "llappviewer.h"
|
||||
#include "llcoros.h"
|
||||
#include "lleventcoro.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
|
||||
|
|
@ -1426,6 +1427,9 @@ void LLAppearanceMgr::wearItemsOnAvatar(const uuid_vec_t& item_ids_to_wear,
|
|||
bool replace,
|
||||
LLPointer<LLInventoryCallback> cb)
|
||||
{
|
||||
LL_DEBUGS("UIUsage") << "wearItemsOnAvatar" << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand("Avatar.WearItem");
|
||||
|
||||
bool first = true;
|
||||
|
||||
LLInventoryObject::const_object_list_t items_to_link;
|
||||
|
|
@ -2761,6 +2765,7 @@ void LLAppearanceMgr::wearInventoryCategoryOnAvatar( LLInventoryCategory* catego
|
|||
|
||||
LL_INFOS("Avatar") << self_av_string() << "wearInventoryCategoryOnAvatar '" << category->getName()
|
||||
<< "'" << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand("Avatar.WearCategory");
|
||||
|
||||
if (gAgentCamera.cameraCustomizeAvatar())
|
||||
{
|
||||
|
|
@ -3968,6 +3973,8 @@ void LLAppearanceMgr::makeNewOutfitLinks(const std::string& new_folder_name, boo
|
|||
{
|
||||
if (!isAgentAvatarValid()) return;
|
||||
|
||||
LLUIUsage::instance().logCommand("Avatar.CreateNewOutfit");
|
||||
|
||||
LL_DEBUGS("Avatar") << "creating new outfit" << LL_ENDL;
|
||||
|
||||
gAgentWearables.notifyLoadingStarted();
|
||||
|
|
@ -4006,6 +4013,9 @@ void LLAppearanceMgr::wearBaseOutfit()
|
|||
|
||||
void LLAppearanceMgr::removeItemsFromAvatar(const uuid_vec_t& ids_to_remove)
|
||||
{
|
||||
LL_DEBUGS("UIUsage") << "removeItemsFromAvatar" << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand("Avatar.RemoveItem");
|
||||
|
||||
if (ids_to_remove.empty())
|
||||
{
|
||||
LL_WARNS() << "called with empty list, nothing to do" << LL_ENDL;
|
||||
|
|
@ -4485,6 +4495,8 @@ public:
|
|||
"Quick Appearance");
|
||||
if ( gInventory.getCategory( folder_uuid ) != NULL )
|
||||
{
|
||||
// Assume this is coming from the predefined avatars web floater
|
||||
LLUIUsage::instance().logCommand("Avatar.WearPredefinedAppearance");
|
||||
LLAppearanceMgr::getInstance()->wearInventoryCategory(category, true, false);
|
||||
|
||||
// *TODOw: This may not be necessary if initial outfit is chosen already -- josh
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@
|
|||
#include "llsidepanelinventory.h"
|
||||
#include "llavatarname.h"
|
||||
#include "llagentui.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
// Flags for kick message
|
||||
const U32 KICK_FLAGS_DEFAULT = 0x0;
|
||||
|
|
@ -113,7 +114,7 @@ void LLAvatarActions::requestFriendshipDialog(const LLUUID& id, const std::strin
|
|||
payload["id"] = id;
|
||||
payload["name"] = name;
|
||||
|
||||
LLNotificationsUtil::add("AddFriendWithMessage", args, payload, &callbackAddFriendWithMessage);
|
||||
LLNotificationsUtil::add("AddFriendWithMessage", args, payload, &callbackAddFriendWithMessage);
|
||||
|
||||
// add friend to recent people list
|
||||
LLRecentPeople::instance().add(id);
|
||||
|
|
@ -1418,6 +1419,8 @@ bool LLAvatarActions::handleUnfreeze(const LLSD& notification, const LLSD& respo
|
|||
void LLAvatarActions::requestFriendship(const LLUUID& target_id, const std::string& target_name, const std::string& message)
|
||||
{
|
||||
const LLUUID calling_card_folder_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_CALLINGCARD);
|
||||
LLUIUsage::instance().logCommand("Agent.SendFriendRequest");
|
||||
|
||||
send_improved_im(target_id,
|
||||
target_name,
|
||||
message,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
#include "llviewerobjectlist.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "llavataractions.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Local function declarations, constants, enums, and typedefs
|
||||
|
|
@ -294,6 +295,8 @@ void LLAvatarTracker::copyBuddyList(buddy_map_t& buddies) const
|
|||
void LLAvatarTracker::terminateBuddy(const LLUUID& id)
|
||||
{
|
||||
LL_DEBUGS() << "LLAvatarTracker::terminateBuddy()" << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand("Agent.TerminateFriendship");
|
||||
|
||||
LLRelationship* buddy = get_ptr_in_map(mBuddyInfo, id);
|
||||
if(!buddy) return;
|
||||
mBuddyInfo.erase(id);
|
||||
|
|
|
|||
|
|
@ -568,8 +568,6 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL
|
|||
// how to chat
|
||||
gWarningSettings.setBOOL("FirstOtherChatBeforeUser", FALSE);
|
||||
|
||||
LLUIUsage::instance().logCommand("Chat.Send"); // Pseudo-command
|
||||
|
||||
// Look for "/20 foo" channel chats.
|
||||
S32 channel = 0;
|
||||
LLWString out_text = stripChannelNumber(wtext, &channel);
|
||||
|
|
|
|||
|
|
@ -698,7 +698,6 @@ 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);
|
||||
|
|
@ -858,6 +857,12 @@ LLWString LLFloaterIMNearbyChat::stripChannelNumber(const LLWString &mesg, S32*
|
|||
|
||||
void send_chat_from_viewer(const std::string& utf8_out_text, EChatType type, S32 channel)
|
||||
{
|
||||
LL_DEBUGS("UIUsage") << "Nearby chat, text " << utf8_out_text << " type " << type << " channel " << channel << LL_ENDL;
|
||||
if (type != CHAT_TYPE_START && type != CHAT_TYPE_STOP) // prune back some redundant logging
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Chat.SendNearby"); // pseuo-command
|
||||
}
|
||||
|
||||
LLMessageSystem* msg = gMessageSystem;
|
||||
|
||||
if (channel >= 0)
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
#include "llviewerregion.h"
|
||||
#include <boost/regex.hpp>
|
||||
#include "llcorehttputil.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
|
||||
#if LL_MSVC
|
||||
|
|
@ -1859,6 +1860,9 @@ void LLGroupMgr::sendGroupRoleMemberChanges(const LLUUID& group_id)
|
|||
//static
|
||||
void LLGroupMgr::sendGroupMemberJoin(const LLUUID& group_id)
|
||||
{
|
||||
|
||||
LLUIUsage::instance().logCommand("Group.Join");
|
||||
|
||||
LLMessageSystem *msg = gMessageSystem;
|
||||
|
||||
msg->newMessageFast(_PREHASH_JoinGroupRequest);
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
#include "message.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llcorehttputil.h"
|
||||
|
||||
#include "lluiusage.h"
|
||||
|
||||
const static std::string ADHOC_NAME_SUFFIX(" Conference");
|
||||
|
||||
|
|
@ -770,6 +770,23 @@ void LLIMModel::LLIMSession::addMessage(const std::string& from, const LLUUID& f
|
|||
message["index"] = (LLSD::Integer)mMsgs.size();
|
||||
message["is_history"] = is_history;
|
||||
|
||||
LL_DEBUGS("UIUsage") << "addMessage " << " from " << from << " from_id " << from_id << " utf8_text " << utf8_text << " time " << time << " is_history " << is_history << " session mType " << mType << LL_ENDL;
|
||||
if (from_id == gAgent.getID())
|
||||
{
|
||||
if (mType == IM_SESSION_GROUP_START)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Chat.SendGroup");
|
||||
}
|
||||
else if (mType == IM_NOTHING_SPECIAL)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Chat.SendIM");
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Chat.SendOther");
|
||||
}
|
||||
}
|
||||
|
||||
mMsgs.push_front(message);
|
||||
|
||||
if (mSpeakers && from_id.notNull())
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
#include "llvoavatarself.h"
|
||||
#include "llworld.h"
|
||||
#include "llpanelface.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
// syntactic sugar
|
||||
#define callMemberFunction(object,ptrToMember) ((object).*(ptrToMember))
|
||||
|
|
@ -1305,10 +1306,12 @@ void LLToolDragAndDrop::dropObject(LLViewerObject* raycast_target,
|
|||
LLMessageSystem* msg = gMessageSystem;
|
||||
if (mSource == SOURCE_NOTECARD)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Object.RezObjectFromNotecard");
|
||||
msg->newMessageFast(_PREHASH_RezObjectFromNotecard);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Object.RezObject");
|
||||
msg->newMessageFast(_PREHASH_RezObject);
|
||||
}
|
||||
msg->nextBlockFast(_PREHASH_AgentData);
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
#include "llui.h"
|
||||
#include "llweb.h"
|
||||
#include "pipeline.h" // setHighlightObject
|
||||
#include "lluiusage.h"
|
||||
|
||||
extern BOOL gDebugClicks;
|
||||
|
||||
|
|
@ -568,6 +569,8 @@ bool LLToolPie::walkToClickedLocation()
|
|||
return false;
|
||||
}
|
||||
|
||||
LLUIUsage::instance().logCommand("Agent.WalkToClickedLocation");
|
||||
|
||||
LLPickInfo saved_pick = mPick;
|
||||
if (gAgentCamera.getCameraMode() != CAMERA_MODE_MOUSELOOK)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@
|
|||
#include "llprimitive.h"
|
||||
#include "llwindow.h" // incBusyCount()
|
||||
#include "material_codes.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
const LLVector3 DEFAULT_OBJECT_SCALE(0.5f, 0.5f, 0.5f);
|
||||
|
||||
|
|
@ -227,6 +228,7 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics )
|
|||
gAgent.getID(), 1.0f, LLAudioEngine::AUDIO_TYPE_UI);
|
||||
}
|
||||
|
||||
LLUIUsage::instance().logCommand("Build.ObjectAdd");
|
||||
gMessageSystem->newMessageFast(_PREHASH_ObjectAdd);
|
||||
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
|
||||
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@
|
|||
#include "llexperiencecache.h"
|
||||
|
||||
#include "llexperiencecache.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
extern void on_new_message(const LLSD& msg);
|
||||
|
||||
|
|
@ -262,6 +263,7 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response)
|
|||
{
|
||||
case 0:
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Agent.AcceptFriendship");
|
||||
// accept
|
||||
LLAvatarTracker::formFriendship(payload["from_id"]);
|
||||
|
||||
|
|
@ -304,6 +306,7 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response)
|
|||
// fall-through
|
||||
case 2: // Send IM - decline and start IM session
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Agent.DeclineFriendship");
|
||||
// decline
|
||||
// We no longer notify other viewers, but we DO still send
|
||||
// the rejection to the simulator to delete the pending userop.
|
||||
|
|
@ -834,6 +837,11 @@ void send_join_group_response(LLUUID group_id, LLUUID transaction_id, bool accep
|
|||
|
||||
EInstantMessage type = accept_invite ? IM_GROUP_INVITATION_ACCEPT : IM_GROUP_INVITATION_DECLINE;
|
||||
|
||||
if (accept_invite)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Group.Join");
|
||||
}
|
||||
|
||||
send_improved_im(group_id,
|
||||
std::string("name"),
|
||||
std::string("message"),
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@
|
|||
#include "llsdserialize.h"
|
||||
#include "llcallstack.h"
|
||||
#include "llcorehttputil.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
#if LL_MSVC
|
||||
// disable boost::lexical_cast warning
|
||||
|
|
@ -2663,6 +2664,7 @@ void LLVOAvatarSelf::onCustomizeStart(bool disable_camera_switch)
|
|||
{
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Avatar.CustomizeStart");
|
||||
if (!gAgentAvatarp->mEndCustomizeCallback.get())
|
||||
{
|
||||
gAgentAvatarp->mEndCustomizeCallback = new LLUpdateAppearanceOnDestroy;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "llui.h"
|
||||
#include "llkeyboard.h"
|
||||
#include "llagent.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
const F32 LLVoiceClient::OVERDRIVEN_POWER_LEVEL = 0.7f;
|
||||
|
||||
|
|
@ -603,6 +604,10 @@ void LLVoiceClient::setMuteMic(bool muted)
|
|||
|
||||
void LLVoiceClient::setUserPTTState(bool ptt)
|
||||
{
|
||||
if (ptt)
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Agent.EnableMicrophone");
|
||||
}
|
||||
mUserPTTState = ptt;
|
||||
updateMicMuteLogic();
|
||||
mMicroChangedSignal();
|
||||
|
|
|
|||
Loading…
Reference in New Issue