SH-2970 WIP - more phase tracking

master
Brad Payne (Vir Linden) 2012-03-09 16:34:17 -05:00
parent 7bc698cbec
commit bcc2547911
4 changed files with 19 additions and 0 deletions

View File

@ -983,6 +983,15 @@ void LLVOAvatar::stopPhase(const std::string& phase_name)
timer.pause();
}
void LLVOAvatar::stopAllPhases()
{
for (phase_map_t::iterator iter = mPhases.begin();
iter != mPhases.end(); ++iter)
{
iter->second.pause();
}
}
void LLVOAvatar::clearPhases()
{
mPhases.clear();

View File

@ -287,6 +287,7 @@ public:
LLFrameTimer& getPhaseTimer(const std::string& phase_name);
void startPhase(const std::string& phase_name);
void stopPhase(const std::string& phase_name);
void stopAllPhases();
void clearPhases();
LLSD dumpPhases();
protected:

View File

@ -98,6 +98,14 @@ void selfClearPhases()
}
}
void selfStopAllPhases()
{
if (isAgentAvatarValid())
{
gAgentAvatarp->stopAllPhases();
}
}
using namespace LLVOAvatarDefines;
/*********************************************************************************

View File

@ -390,6 +390,7 @@ BOOL isAgentAvatarValid();
void selfStartPhase(const std::string& phase_name);
void selfStopPhase(const std::string& phase_name);
void selfStopAllPhases();
void selfClearPhases();
#endif // LL_VO_AVATARSELF_H