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.
16 #ifndef __DISTRIBUTION__
17 #define __DISTRIBUTION__
20 #include "codespace.h"
23 class Distribution : public Sampler
28 ThreadData(const Thread& aThread, int aSize);
29 ThreadData(int aCutoff);
30 bool operator<(const ThreadData& aRhs) const;
32 const Thread* iThread;
37 typedef std::vector<ThreadData> Data;
39 Distribution(CodeSpace& aCodeSpace, double aCutOff);
41 void Sample(unsigned aNumber, const Thread& aThread, PC aPc);
42 void Complete(unsigned aTotal, unsigned aActive);
44 CodeSpace& iCodeSpace;
49 #endif // __DISTRIBUTION__