Skip to content
Snippets Groups Projects
Commit bd62d1d3 authored by Merov Linden's avatar Merov Linden
Browse files

CHUI-479 : WIP : More tracing

parent a5d6375d
No related branches found
No related tags found
No related merge requests found
...@@ -349,15 +349,21 @@ const bool LLConversationItemSession::getTime(F64& time) const ...@@ -349,15 +349,21 @@ const bool LLConversationItemSession::getTime(F64& time) const
return has_time; return has_time;
} }
void LLConversationItemSession::dumpDebugData() void LLConversationItemSession::dumpDebugData(bool dump_children)
{ {
// Session info
llinfos << "Merov debug : session " << this << ", uuid = " << mUUID << ", name = " << mName << ", is loaded = " << mIsLoaded << llendl; llinfos << "Merov debug : session " << this << ", uuid = " << mUUID << ", name = " << mName << ", is loaded = " << mIsLoaded << llendl;
LLConversationItemParticipant* participant = NULL; // Children info
child_list_t::iterator iter; if (dump_children)
for (iter = mChildren.begin(); iter != mChildren.end(); iter++)
{ {
participant = dynamic_cast<LLConversationItemParticipant*>(*iter); for (child_list_t::iterator iter = mChildren.begin(); iter != mChildren.end(); iter++)
participant->dumpDebugData(); {
LLConversationItemParticipant* participant = dynamic_cast<LLConversationItemParticipant*>(*iter);
if (participant)
{
participant->dumpDebugData();
}
}
} }
} }
......
...@@ -168,7 +168,7 @@ class LLConversationItemSession : public LLConversationItem ...@@ -168,7 +168,7 @@ class LLConversationItemSession : public LLConversationItem
void addVoiceOptions(menuentry_vec_t& items); void addVoiceOptions(menuentry_vec_t& items);
virtual const bool getTime(F64& time) const; virtual const bool getTime(F64& time) const;
void dumpDebugData(); void dumpDebugData(bool dump_children = false);
private: private:
bool mIsLoaded; // true if at least one participant has been added to the session, false otherwise bool mIsLoaded; // true if at least one participant has been added to the session, false otherwise
......
...@@ -48,6 +48,8 @@ LLColor4 LLOutputMonitorCtrl::sColorBound; ...@@ -48,6 +48,8 @@ LLColor4 LLOutputMonitorCtrl::sColorBound;
//F32 LLOutputMonitorCtrl::sRectWidthRatio = 0.f; //F32 LLOutputMonitorCtrl::sRectWidthRatio = 0.f;
//F32 LLOutputMonitorCtrl::sRectHeightRatio = 0.f; //F32 LLOutputMonitorCtrl::sRectHeightRatio = 0.f;
static LLUUID test_uuid("c684ce33-89fb-4544-8f7b-dae243c8b214");
LLOutputMonitorCtrl::Params::Params() LLOutputMonitorCtrl::Params::Params()
: draw_border("draw_border"), : draw_border("draw_border"),
image_mute("image_mute"), image_mute("image_mute"),
...@@ -278,7 +280,6 @@ BOOL LLOutputMonitorCtrl::handleMouseUp(S32 x, S32 y, MASK mask) ...@@ -278,7 +280,6 @@ BOOL LLOutputMonitorCtrl::handleMouseUp(S32 x, S32 y, MASK mask)
void LLOutputMonitorCtrl::setSpeakerId(const LLUUID& speaker_id, const LLUUID& session_id/* = LLUUID::null*/, bool show_other_participants_speaking /* = false */) void LLOutputMonitorCtrl::setSpeakerId(const LLUUID& speaker_id, const LLUUID& session_id/* = LLUUID::null*/, bool show_other_participants_speaking /* = false */)
{ {
static LLUUID test_uuid("c684ce33-89fb-4544-8f7b-dae243c8b214");
bool test_on = (speaker_id == test_uuid); bool test_on = (speaker_id == test_uuid);
if (test_on) if (test_on)
{ {
...@@ -345,6 +346,11 @@ void LLOutputMonitorCtrl::onChange() ...@@ -345,6 +346,11 @@ void LLOutputMonitorCtrl::onChange()
void LLOutputMonitorCtrl::switchIndicator(bool switch_on) void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
{ {
llinfos << "Merov debug : switchIndicator, mSpeakerId = " << mSpeakerId << ", switch_on = " << switch_on << llendl; llinfos << "Merov debug : switchIndicator, mSpeakerId = " << mSpeakerId << ", switch_on = " << switch_on << llendl;
bool test_on = (mSpeakerId == test_uuid);
if (test_on && !switch_on)
{
llinfos << "Merov debug : switching agent off!" << llendl;
}
// ensure indicator is visible in case it is not in visible chain // ensure indicator is visible in case it is not in visible chain
// to be called when parent became visible next time to notify parent that visibility is changed. // to be called when parent became visible next time to notify parent that visibility is changed.
setVisible(TRUE); setVisible(TRUE);
......
...@@ -224,13 +224,13 @@ void SpeakingIndicatorManager::onParticipantsChanged() ...@@ -224,13 +224,13 @@ void SpeakingIndicatorManager::onParticipantsChanged()
void SpeakingIndicatorManager::switchSpeakerIndicators(const speaker_ids_t& speakers_uuids, BOOL switch_on) void SpeakingIndicatorManager::switchSpeakerIndicators(const speaker_ids_t& speakers_uuids, BOOL switch_on)
{ {
llinfos << "Merov debug : switchSpeakerIndicators, switch_on = " << switch_on << llendl;
LLVoiceChannel* voice_channel = LLVoiceChannel::getCurrentVoiceChannel(); LLVoiceChannel* voice_channel = LLVoiceChannel::getCurrentVoiceChannel();
LLUUID session_id; LLUUID session_id;
if (voice_channel) if (voice_channel)
{ {
session_id = voice_channel->getSessionID(); session_id = voice_channel->getSessionID();
} }
llinfos << "Merov debug : switchSpeakerIndicators, switch_on = " << switch_on << ", voice channel = " << session_id << llendl;
speaker_ids_t::const_iterator it_uuid = speakers_uuids.begin(); speaker_ids_t::const_iterator it_uuid = speakers_uuids.begin();
for (; it_uuid != speakers_uuids.end(); ++it_uuid) for (; it_uuid != speakers_uuids.end(); ++it_uuid)
...@@ -255,17 +255,17 @@ void SpeakingIndicatorManager::switchSpeakerIndicators(const speaker_ids_t& spea ...@@ -255,17 +255,17 @@ void SpeakingIndicatorManager::switchSpeakerIndicators(const speaker_ids_t& spea
} }
was_switched_on = was_switched_on || switch_current_on; was_switched_on = was_switched_on || switch_current_on;
llinfos << "Merov debug : indicator for " << *it_uuid << ", switch_current_on = " << switch_current_on << ", session = " << indicator->getTargetSessionID() << llendl;
indicator->switchIndicator(switch_current_on); indicator->switchIndicator(switch_current_on);
} }
if (was_found) if (was_found)
{ {
LL_DEBUGS("SpeakingIndicator") << mSpeakingIndicators.count(*it_uuid) << " indicators where found" << LL_ENDL; LL_DEBUGS("SpeakingIndicator") << mSpeakingIndicators.count(*it_uuid) << " indicators were found" << LL_ENDL;
if (switch_on && !was_switched_on) if (switch_on && !was_switched_on)
{ {
LL_DEBUGS("SpeakingIndicator") << "but non of them where switched on" << LL_ENDL; LL_DEBUGS("SpeakingIndicator") << "but none of them were switched on" << LL_ENDL;
} }
if (was_switched_on) if (was_switched_on)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment