Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
33 TInt SetThresholds(TUint thrashing, TUint good);
35 void NotifyStartPaging(); // The current thread has started a paging operation
36 void NotifyEndPaging(); // The current thread has completed a paging operation
48 TInt iCount; // Current value of counter
49 TUint32 iLastUpdateTime; // Time counter was last updated
50 TInt64 iTotal; // Accumulator for ticks * value
51 TInt iAverage; // Average value of counter for last time period * 100
56 void UpdateCount(TCount aCount, TInt aDelta);
57 void RecalculateThrashLevel(); // Update internal state, called periodically from timer DFC
58 static void UpdateDfcFunc(TAny* aPtr);
65 TUint32 iLastUpdateTime;
70 TInt iThresholdThrashing;
73 TCountData iCount[EMaxCount];
76 extern DThrashMonitor TheThrashMonitor;