diff options
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | indra/llcommon/llaccountingcost.h (renamed from indra/llcommon/llaccountingquota.h) | 24 | ||||
| -rw-r--r-- | indra/llcommon/llfasttimer_class.cpp | 19 | ||||
| -rw-r--r-- | indra/llcommon/llfasttimer_class.h | 2 | ||||
| -rw-r--r-- | indra/llcommon/llversionviewer.h | 4 | 
5 files changed, 24 insertions, 27 deletions
| diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index 60d4cfe6d3..6f39aba976 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -117,7 +117,7 @@ set(llcommon_HEADER_FILES      indra_constants.h      linden_common.h      linked_lists.h -    llaccountingquota.h +    llaccountingcost.h      llallocator.h      llallocator_heap_profile.h      llagentconstants.h diff --git a/indra/llcommon/llaccountingquota.h b/indra/llcommon/llaccountingcost.h index 140333de07..0ef3b50c6d 100644 --- a/indra/llcommon/llaccountingquota.h +++ b/indra/llcommon/llaccountingcost.h @@ -1,5 +1,5 @@  /**  - * @file llaccountingquota.h + * @file llaccountingcost.h   * @   *   * $LicenseInfo:firstyear=2001&license=viewerlgpl$ @@ -58,22 +58,28 @@ struct ParcelQuota  	F32 mParcelCapacity;  }; -struct SelectionQuota +//SelectionQuota atm does not require a id +struct SelectionCost  { -	SelectionQuota( LLUUID localId, F32 renderCost, F32 physicsCost, F32 networkCost, F32 simulationCost ) -	: mLocalId( localId) -	, mRenderCost( renderCost ) -	, mPhysicsCost( physicsCost ) +	SelectionCost( /*LLTransactionID transactionId, */ F32 physicsCost, F32 networkCost, F32 simulationCost ) +	//: mTransactionId( transactionId) +	: mPhysicsCost( physicsCost )  	, mNetworkCost( networkCost )  	, mSimulationCost( simulationCost )  	{  	} -	SelectionQuota() {} +	SelectionCost() +	: mPhysicsCost( 0.0f ) +	, mNetworkCost( 0.0f ) +	, mSimulationCost( 0.0f ) +	{} -	F32 mRenderCost, mPhysicsCost, mNetworkCost, mSimulationCost;	 -	LLUUID mLocalId; +	F32 mPhysicsCost, mNetworkCost, mSimulationCost;	 +	//LLTransactionID mTransactionId;  }; +typedef enum { Roots = 0 , Prims } eSelectionType; +  #endif diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index ebb5961c91..463f558c2c 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -303,14 +303,15 @@ LLFastTimer::NamedTimer::~NamedTimer()  std::string LLFastTimer::NamedTimer::getToolTip(S32 history_idx)  { +	F64 ms_multiplier = 1000.0 / (F64)LLFastTimer::countsPerSecond();  	if (history_idx < 0)  	{ -		// by default, show average number of calls -		return llformat("%s (%d calls)", getName().c_str(), (S32)getCallAverage()); +		// by default, show average number of call +		return llformat("%s (%d ms, %d calls)", getName().c_str(), (S32)(getCountAverage() * ms_multiplier), (S32)getCallAverage());  	}  	else  	{ -		return llformat("%s (%d calls)", getName().c_str(), (S32)getHistoricalCalls(history_idx)); +		return llformat("%s (%d ms, %d calls)", getName().c_str(), (S32)(getHistoricalCount(history_idx) * ms_multiplier), (S32)getHistoricalCalls(history_idx));  	}  } @@ -693,17 +694,7 @@ void LLFastTimer::nextFrame()  		llinfos << "Slow frame, fast timers inaccurate" << llendl;  	} -	if (sPauseHistory) -	{ -		sResetHistory = true; -	} -	else if (sResetHistory) -	{ -		sLastFrameIndex = 0; -		sCurFrameIndex = 0; -		sResetHistory = false; -	} -	else // not paused +	if (!sPauseHistory)  	{  		NamedTimer::processTimes();  		sLastFrameIndex = sCurFrameIndex++; diff --git a/indra/llcommon/llfasttimer_class.h b/indra/llcommon/llfasttimer_class.h index 827747f0c6..f481e968a6 100644 --- a/indra/llcommon/llfasttimer_class.h +++ b/indra/llcommon/llfasttimer_class.h @@ -66,7 +66,7 @@ public:  	public:  		~NamedTimer(); -		enum { HISTORY_NUM = 60 }; +		enum { HISTORY_NUM = 300 };  		const std::string& getName() const { return mName; }  		NamedTimer* getParent() const { return mParent; } diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h index ef55cfec89..3377465bb6 100644 --- a/indra/llcommon/llversionviewer.h +++ b/indra/llcommon/llversionviewer.h @@ -28,8 +28,8 @@  #define LL_LLVERSIONVIEWER_H  const S32 LL_VERSION_MAJOR = 3; -const S32 LL_VERSION_MINOR = 0; -const S32 LL_VERSION_PATCH = 5; +const S32 LL_VERSION_MINOR = 1; +const S32 LL_VERSION_PATCH = 0;  const S32 LL_VERSION_BUILD = 0;  const char * const LL_CHANNEL = "Second Life Developer"; | 
