kerneltest/e32utils/analyse/tracer.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __TRACER__
       
    17 #define __TRACER__
       
    18 
       
    19 #include "trace.h"
       
    20 #include <vector>
       
    21 
       
    22 class MappedCodeSpace;
       
    23 
       
    24 class Tracer : public Sampler
       
    25 	{
       
    26 public:
       
    27 	Tracer(MappedCodeSpace* aCodeSpace);
       
    28 private:
       
    29 	void Sample(unsigned aNumber, const Thread& aThread, PC aPc);
       
    30 	void Complete(unsigned aTotal, unsigned aActive);
       
    31 private:
       
    32 	MappedCodeSpace* iCodeSpace;
       
    33 	std::vector<const Thread*> iThreads;
       
    34 	};
       
    35 
       
    36 #endif // __TRACER__