SH-2970 WIP - more phase tracking
parent
7bc698cbec
commit
bcc2547911
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -98,6 +98,14 @@ void selfClearPhases()
|
|||
}
|
||||
}
|
||||
|
||||
void selfStopAllPhases()
|
||||
{
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
gAgentAvatarp->stopAllPhases();
|
||||
}
|
||||
}
|
||||
|
||||
using namespace LLVOAvatarDefines;
|
||||
|
||||
/*********************************************************************************
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue