diff -r 67c6ff54ec25 -r a009639409f5 analyzetool/commandlineengine/inc/catalloc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analyzetool/commandlineengine/inc/catalloc.h Thu May 27 14:26:55 2010 +0300 @@ -0,0 +1,59 @@ +/* +* 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: Defines CATAlloc class. +* +*/ + + +#ifndef __CATALLOC_H__ +#define __CATALLOC_H__ + +#include "../inc/ATCommonDefines.h" + +/** +* Class representing single memory allocation. +*/ +class CATAlloc +{ +public: + /** + * Constructor. + */ + CATAlloc() : m_iCSCount(0) {} + + /** + * Destructor. + */ + ~CATAlloc(){} + + /** + * Get alloc string after address, it contains: + * time, size, call stack.. + * @return string allocation string + */ + string GetAllocString(); + + // Members + + string m_sTime; /** Allocation time */ + + string m_sSize; /** Allocation size */ + + unsigned long m_iCSCount; /** Call stack address count */ + + map m_vCallStack; /** Call stack where packet number is key */ + +}; +#endif +//EOF