diff -r 516af714ebb4 -r f2950aff7424 perfsrv/memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapDataBase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perfsrv/memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapDataBase.h Mon Oct 04 02:45:59 2010 +0300 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef MEMSPYDRIVERLOGICALCHANHEAPDATABASE_H +#define MEMSPYDRIVERLOGICALCHANHEAPDATABASE_H + +// System includes +#include +#include +#ifdef __MARM__ +#include +#endif +#include +#include + +// User includes +#include "MemSpyDriverHeap.h" +#include "MemSpyDriverOpCodes.h" +#include "MemSpyDriverLogChanHeapBase.h" +#include "MemSpyDriverObjectsInternal.h" +#include "MemSpyDriverHeapWalker.h" +#include "MemSpyDriverEnumerationsInternal.h" + +// Classes referenced +class DMemSpyDriverDevice; +class RMemSpyMemStreamWriter; + +const static TInt KPageSize = 4096; + +class DMemSpyDriverLogChanHeapDataBase : public DMemSpyDriverLogChanHeapBase + { +public: + DMemSpyDriverLogChanHeapDataBase( DMemSpyDriverDevice& aDevice, DThread& aThread ); + ~DMemSpyDriverLogChanHeapDataBase(); + +private: // From MHeapWalkerObserver + void HandleHeapWalkInit(); + TBool HandleHeapCell( TMemSpyDriverCellType aCellType, TAny* aCellAddress, TInt aLength, TInt aNestingLevel, TInt aAllocNumber ); + +protected: // For use by the base classes + TInt PrepareCellListTransferBuffer(); + TInt FetchCellList(TDes8* aBufferSink); + void ReleaseCellList(); + TInt CalculateCellListBufferSize() const; + TInt GetFullData( TMemSpyDriverInternalHeapDataParams* aParams ); + TInt DoGetFullData(TMemSpyDriverInternalHeapDataParams& aParams, DThread* aThread, RMemSpyDriverRHeapBase& aHeap); + +protected: // To be implemetned by the base classes + virtual TInt GetFullData( TMemSpyDriverInternalHeapDataParams& aParams ) = 0; + +protected: // Data members + TMemSpyDriverInternalHeapRequestParameters iHeapInfoParams; + RArray iCellList; + RMemSpyMemStreamWriter* iHeapStream; + }; + + +#endif