Update contrib.
1 // Copyright (c) 2000-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.
23 class Activity : public Sampler
27 inline Bucket(unsigned aPeriod,int aThread);
28 bool operator<(const Bucket& aRhs) const;
35 inline ThreadData(const Thread& aThread);
36 inline ThreadData(unsigned aCutoff);
37 inline bool operator<(const ThreadData& aRhs) const;
39 const Thread* iThread;
42 typedef std::map<Bucket,unsigned> Data;
43 typedef std::vector<ThreadData> Threads;
45 Activity(int aBucketSize, unsigned aBeginSample, double aCutOff);
47 void Sample(unsigned aNumber, const Thread& aThread, PC aPc);
48 void Complete(unsigned aTotal, unsigned aActive);
51 unsigned iBeginSample;
57 #endif // __ACTIVITY__